12 #include <Eigen/CXX11/Tensor> 34 for (
int i = 0; i < 2; ++i) {
35 for (
int j = 0; j < 3; ++j) {
36 for (
int k = 0; k < 7; ++k) {
37 VERIFY_IS_EQUAL(lt(i,j,k), mat1(i,j,k) < mat2(i,j,k));
38 VERIFY_IS_EQUAL(le(i,j,k), mat1(i,j,k) <= mat2(i,j,k));
39 VERIFY_IS_EQUAL(gt(i,j,k), mat1(i,j,k) > mat2(i,j,k));
40 VERIFY_IS_EQUAL(ge(i,j,k), mat1(i,j,k) >= mat2(i,j,k));
54 for (
int i = 0; i < 2; ++i) {
55 for (
int j = 0; j < 3; ++j) {
56 for (
int k = 0; k < 7; ++k) {
57 if (internal::random<bool>()) {
58 mat2(i,j,k) = mat1(i,j,k);
69 for (
int i = 0; i < 2; ++i) {
70 for (
int j = 0; j < 3; ++j) {
71 for (
int k = 0; k < 7; ++k) {
72 VERIFY_IS_EQUAL(eq(i,j,k), mat1(i,j,k) == mat2(i,j,k));
73 VERIFY_IS_EQUAL(ne(i,j,k), mat1(i,j,k) != mat2(i,j,k));
static void test_equality()
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Tensor< Scalar_, NumIndices_, Options_, IndexType_ > & setRandom()
static void test_orderings()
void test_cxx11_tensor_comparisons()