Home
last modified time | relevance | path

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

/external/eigen/unsupported/test/
Dcxx11_tensor_map.cpp218 TensorMap<TensorFixedSize<int, Sizes<2,3,7> > > mat6(mat5); in test_from_tensor() local
220 VERIFY_IS_EQUAL(mat6.rank(), 3); in test_from_tensor()
221 VERIFY_IS_EQUAL(mat6.size(), 2*3*7); in test_from_tensor()
222 VERIFY_IS_EQUAL(mat6.dimension(0), 2); in test_from_tensor()
223 VERIFY_IS_EQUAL(mat6.dimension(1), 3); in test_from_tensor()
224 VERIFY_IS_EQUAL(mat6.dimension(2), 7); in test_from_tensor()
230 VERIFY_IS_EQUAL(mat6(i,j,k), val); in test_from_tensor()
Dcxx11_tensor_contraction.cpp65 Tensor<float, 2, DataLayout> mat6(2,2); in test_evals() local
66 mat6.setZero(); in test_evals()
70 eval3.evalTo(mat6.data()); in test_evals()
75 VERIFY_IS_APPROX(mat6(0,0), mat1(0,0)*mat3(0,0) + mat1(0,1)*mat3(1,0) + mat1(0,2)*mat3(2,0)); in test_evals()
76 VERIFY_IS_APPROX(mat6(0,1), mat1(0,0)*mat3(0,1) + mat1(0,1)*mat3(1,1) + mat1(0,2)*mat3(2,1)); in test_evals()
77 VERIFY_IS_APPROX(mat6(1,0), mat1(1,0)*mat3(0,0) + mat1(1,1)*mat3(1,0) + mat1(1,2)*mat3(2,0)); in test_evals()
78 VERIFY_IS_APPROX(mat6(1,1), mat1(1,0)*mat3(0,1) + mat1(1,1)*mat3(1,1) + mat1(1,2)*mat3(2,1)); in test_evals()
143 Tensor<float, 1, DataLayout> mat6(2); in test_multidims() local
144 mat6.setZero(); in test_multidims()
148 eval2.evalTo(mat6.data()); in test_multidims()
[all …]
Dcxx11_tensor_expr.cpp132 Tensor<float, 3, RowMajor> mat6(2,3,7); in test_3d() local
133 mat6 = mat2.pow(0.5f) * 3.14f; in test_3d()
152 VERIFY_IS_APPROX(mat6(i,j,k), sqrtf(val) * 3.14f); in test_3d()