mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-11 03:09:01 +08:00
fix tensor comparison test
This commit is contained in:
parent
2b513ca2a0
commit
d670039309
@ -20,10 +20,10 @@ static void test_orderings()
|
|||||||
{
|
{
|
||||||
Tensor<Scalar, 3> mat1(2,3,7);
|
Tensor<Scalar, 3> mat1(2,3,7);
|
||||||
Tensor<Scalar, 3> mat2(2,3,7);
|
Tensor<Scalar, 3> mat2(2,3,7);
|
||||||
Tensor<Scalar, 3> lt(2,3,7);
|
Tensor<bool, 3> lt(2,3,7);
|
||||||
Tensor<Scalar, 3> le(2,3,7);
|
Tensor<bool, 3> le(2,3,7);
|
||||||
Tensor<Scalar, 3> gt(2,3,7);
|
Tensor<bool, 3> gt(2,3,7);
|
||||||
Tensor<Scalar, 3> ge(2,3,7);
|
Tensor<bool, 3> ge(2,3,7);
|
||||||
|
|
||||||
mat1.setRandom();
|
mat1.setRandom();
|
||||||
mat2.setRandom();
|
mat2.setRandom();
|
||||||
@ -63,8 +63,8 @@ static void test_equality()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Tensor<Scalar, 3> eq(2,3,7);
|
Tensor<bool, 3> eq(2,3,7);
|
||||||
Tensor<Scalar, 3> ne(2,3,7);
|
Tensor<bool, 3> ne(2,3,7);
|
||||||
eq = (mat1 == mat2);
|
eq = (mat1 == mat2);
|
||||||
ne = (mat1 != mat2);
|
ne = (mat1 != mat2);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user