MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / randn

Function randn

src/api/cpp/random.cpp:70–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70array randn(const dim4 &dims, const dtype ty, randomEngine &r) {
71 af_array out;
72 AF_THROW(af_random_normal(&out, dims.ndims(), dims.get(), ty, r.get()));
73 return array(out);
74}
75
76array randu(const dim4 &dims, const af::dtype type) {
77 af_array res;

Callers 15

TESTFunction · 0.85
TESTFunction · 0.85
testRandomEngineNormalFunction · 0.85
TESTFunction · 0.85
TEST_PFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
mainFunction · 0.85
initial_conditions_randFunction · 0.85

Calls 6

af_random_normalFunction · 0.50
arrayClass · 0.50
af_randnFunction · 0.50
dim4Class · 0.50
ndimsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected