27template <
typename AFloat>
30template<
typename AFloat>
33 if (!fgRandomGen) fgRandomGen =
new TRandom3();
34 fgRandomGen->SetSeed(seed);
36template<
typename AFloat>
39 if (!fgRandomGen) fgRandomGen =
new TRandom3(0);
43template<
typename AFloat>
55 for (
size_t i = 0; i <
m; i++) {
56 for (
size_t j = 0;
j <
n;
j++) {
64template<
typename AFloat>
76 for (
size_t i = 0; i <
m; i++) {
77 for (
size_t j = 0;
j <
n;
j++) {
89template<
typename AFloat>
101 for (
size_t i = 0; i <
m; i++) {
102 for (
size_t j = 0;
j <
n;
j++) {
118template<
typename AFloat>
130 for (
size_t i = 0; i <
m; i++) {
131 for (
size_t j = 0;
j <
n;
j++) {
135 printf(
"initialize glorotuniform \n");
141template<
typename AFloat>
149 for (
size_t i = 0; i <
m; i++) {
150 for (
size_t j = 0;
j <
n ;
j++) {
162template<
typename AFloat>
169template <
typename AFloat>
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
static void SetRandomSeed(size_t seed)
static void InitializeGlorotUniform(Matrix_t &A)
Sample from a uniform distribution in range [ -lim,+lim] where lim = sqrt(6/N_in+N_out).
static void InitializeGlorotNormal(Matrix_t &A)
Truncated normal initialization (Glorot, called also Xavier normal) The values are sample with a norm...
static void InitializeUniform(Matrix_t &A)
static void InitializeGauss(Matrix_t &A)
static TRandom * fgRandomGen
static void InitializeIdentity(Matrix_t &A)
static TRandom & GetRandomGenerator()
static void InitializeZero(Matrix_t &A)
Random number generator class based on M.
This is the base class for the ROOT Random number generators.
create variable transformations