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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user