mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-02 00:34:14 +08:00
Added more tests
This commit is contained in:
parent
80200a1828
commit
a792cd357d
@ -20,6 +20,8 @@ static void test_0d()
|
|||||||
TensorFixedSize<float, Sizes<> > scalar1;
|
TensorFixedSize<float, Sizes<> > scalar1;
|
||||||
TensorFixedSize<float, Sizes<>, RowMajor> scalar2;
|
TensorFixedSize<float, Sizes<>, RowMajor> scalar2;
|
||||||
VERIFY_IS_EQUAL(scalar1.rank(), 0);
|
VERIFY_IS_EQUAL(scalar1.rank(), 0);
|
||||||
|
VERIFY_IS_EQUAL(scalar1.size(), 1);
|
||||||
|
VERIFY_IS_EQUAL(array_prod(scalar1.dimensions()), 1);
|
||||||
|
|
||||||
scalar1() = 7.0;
|
scalar1() = 7.0;
|
||||||
scalar2() = 13.0;
|
scalar2() = 13.0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user