Dense Layer, Add

added the dense layer with a forward functions. I also made the add functions for most cases.
This commit is contained in:
2026-06-25 19:43:07 +02:00
parent 9b20278395
commit 189d605bfa
27 changed files with 1657 additions and 902 deletions
+9 -9
View File
@@ -52,40 +52,40 @@
namespace panic {
namespace constants{
//---------------------------------------------------------------------------------------------------------------------------
// Type Name : panic::pi
// Type Name : panic::constants::pi
//
// Description:
// Default difinition of pi (3.14159265358979323846) used inside PANIC.
// static_cast makes sure the right number of decimals are used when defining the constant.
//
// Underlying Type:
// panic::real_t
// panic::types::real_t
//---------------------------------------------------------------------------------------------------------------------------
static const panic::real_t pi = static_cast<panic::real_t>(3.14159265358979323846);
static const panic::types::real_t pi = static_cast<panic::types::real_t>(3.14159265358979323846);
//---------------------------------------------------------------------------------------------------------------------------
//
// Type Name : panic::tau
// Type Name : panic::constants::tau
//
// Description:
// Default difinition of tau (6.28318530717958647692) used inside PANIC.
// static_cast makes sure the right number of decimals are used when defining the constant.
//
// Underlying Type:
// panic::real_t
// panic::types::real_t
//---------------------------------------------------------------------------------------------------------------------------
static const panic::real_t tau = static_cast<panic::real_t>(6.28318530717958647692);
static const panic::types::real_t tau = static_cast<panic::types::real_t>(6.28318530717958647692);
//---------------------------------------------------------------------------------------------------------------------------
//
// Type Name : panic::e
// Type Name : panic::constants::e
//
// Description:
// Default difinition of eulers number, e (2.71828182845904523536) used inside PANIC.
// static_cast makes sure the right number of decimals are used when defining the constant.
//
// Underlying Type:
// panic::real_t
// panic::types::real_t
//---------------------------------------------------------------------------------------------------------------------------
static const panic::real_t e = static_cast<panic::real_t>(2.71828182845904523536);
static const panic::types::real_t e = static_cast<panic::types::real_t>(2.71828182845904523536);
} // namespace constants
} // namespace panic
+5 -4
View File
@@ -45,7 +45,7 @@
//---------------------------------------------------------------------------------------------------------------------------
// TYPE DESCRIPTION
//---------------------------------------------------------------------------------------------------------------------------
// Type Name : panic::uint_t
// Type Name : panic::types::uint_t
//
// Description:
// Default unsigned integer type used inside PANIC.
@@ -54,7 +54,7 @@
// uint32_t
//---------------------------------------------------------------------------------------------------------------------------
//
// Type Name : panic::int_t
// Type Name : panic::types::int_t
//
// Description:
// Default signed integer type used inside PANIC.
@@ -63,7 +63,7 @@
// int32_t
//---------------------------------------------------------------------------------------------------------------------------
//
// Type Name : panic::real_t
// Type Name : panic::types::real_t
//
// Description:
// Default floating-point type used inside PANIC.
@@ -73,11 +73,12 @@
//---------------------------------------------------------------------------------------------------------------------------
namespace panic {
namespace types{
typedef uint32_t uint_t;
typedef int32_t int_t;
typedef float real_t;
} // namespace types
} // namespace panic