MCPcopy Create free account
hub / github.com/abess-team/abess / test_default

Function test_default

python/include/unsupported/test/cxx11_tensor_random.cpp:14–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12#include <Eigen/CXX11/Tensor>
13
14static void test_default()
15{
16 Tensor<float, 1> vec(6);
17 vec.setRandom();
18
19 // Fixme: we should check that the generated numbers follow a uniform
20 // distribution instead.
21 for (int i = 1; i < 6; ++i) {
22 VERIFY_IS_NOT_EQUAL(vec(i), vec(i-1));
23 }
24}
25
26static void test_normal()
27{

Callers 1

test_cxx11_tensor_randomFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected