80 int_scale = _int_scale;
89 int_scale = _int_scale;
104 int_scale = _int_scale;
117 out <<
"uniform, min: " << dist.
uniform.min <<
", max: " << dist.
uniform.max;
120 out <<
"gaussian, mean: " << dist.
gaussian.mean <<
", stddev: " << dist.
gaussian.stddev;
132 out <<
", int_scale: " << dist.
int_scale;
Distribution()
Definition: distribution.h:73
Definition: aligned_buffer.h:35
Definition: distribution.h:40
Definition: distribution.h:40
struct cutlass::Distribution::@18::@20 uniform
Uniform distribution.
double mean
Definition: distribution.h:52
Kind kind
Active variant kind.
Definition: distribution.h:64
struct cutlass::Distribution::@18::@21 gaussian
Gaussian distribution.
Distribution & set_identity()
Sets identity.
Definition: distribution.h:94
Kind
Variant types.
Definition: distribution.h:40
double max
Definition: distribution.h:47
double stddev
Definition: distribution.h:53
Definition: distribution.h:40
double min
Definition: distribution.h:46
Distribution & set_uniform(double _min, double _max, int _int_scale=0)
Configures distribution as uniform random.
Definition: distribution.h:76
double start
Definition: distribution.h:58
double delta
Definition: distribution.h:59
Definition: distribution.h:40
std::ostream & operator<<(std::ostream &out, complex< T > const &z)
Definition: complex.h:291
Distribution type.
Definition: distribution.h:38
struct cutlass::Distribution::@18::@22 sequential
Elements are linear combination of row and column index.
int int_scale
Random values are cast to integer after scaling by this power of two.
Definition: distribution.h:67
Distribution & set_sequential(double start, double delta, int _int_scale=0)
Sets sequential.
Definition: distribution.h:100
Definition: distribution.h:40
Distribution & set_gaussian(double _mean, double _stddev, int _int_scale=0)
Configures distribution as Gaussian distribution.
Definition: distribution.h:85