MCPcopy Create free account
hub / github.com/catboost/catboost / FillWithRandomFloats

Function FillWithRandomFloats

library/cpp/dot_product/dot_product_ut.cpp:24–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23 template <class Num>
24 void FillWithRandomFloats(Num * dst, int seed, size_t length) {
25 TReallyFastRng32 Rnd(seed);
26 for (size_t i = 0; i < length; ++i) {
27 dst[i] = Rnd.GenRandReal1();
28 }
29 }
30
31 template <class Res, class Int>
32 Res SimpleDotProduct(const Int* lhs, const Int* rhs, size_t length) {

Callers 1

Y_UNIT_TESTFunction · 0.85

Calls 1

GenRandReal1Method · 0.80

Tested by

no test coverage detected