Home
last modified time | relevance | path

Searched refs:dtensor (Results 1 – 1 of 1) sorted by relevance

/external/eigen/unsupported/test/
Dcxx11_tensor_casts.cpp44 Tensor<double, 2> dtensor(20,30); in test_vectorized_cast() local
45 dtensor.setRandom(); in test_vectorized_cast()
48 dtensor = itensor.cast<double>(); in test_vectorized_cast()
53 VERIFY_IS_EQUAL(dtensor(i,j), static_cast<double>(ftensor(i,j))); in test_vectorized_cast()
63 Tensor<double, 2> dtensor(20,30); in test_float_to_int_cast() local
64 dtensor = dtensor.random() * 1000.0; in test_float_to_int_cast()
67 Tensor<int, 2> i2tensor = dtensor.cast<int>(); in test_float_to_int_cast()
72 VERIFY_IS_EQUAL(i2tensor(i,j), static_cast<int>(dtensor(i,j))); in test_float_to_int_cast()
80 Tensor<double, 2> dtensor(20, 30); in test_big_to_small_type_cast() local
81 dtensor.setRandom(); in test_big_to_small_type_cast()
[all …]