/external/eigen/unsupported/test/ |
cxx11_tensor_io.cpp | 13 #include <Eigen/CXX11/Tensor> 19 Tensor<int, 0, DataLayout> tensor; local 20 tensor() = 123; 23 os << tensor; local 33 Tensor<int, 1, DataLayout> tensor(5); 35 tensor(i) = i; 39 os << tensor; local 44 Eigen::Tensor<double,1,DataLayout> empty_tensor(0) 63 os << tensor; local 97 os << tensor; local [all...] |
cxx11_tensor_assign.cpp | 12 #include <Eigen/CXX11/Tensor> 14 using Eigen::Tensor; 19 Tensor<int, 1> vec1(6); 20 Tensor<int, 1, RowMajor> vec2(6); 32 TensorMap<Tensor<int, 1> > vec3(col_major, 6); 33 TensorMap<Tensor<int, 1, RowMajor> > vec4(row_major, 6); 74 Tensor<int, 2> mat1(2,3); 75 Tensor<int, 2, RowMajor> mat2(2,3); 95 TensorMap<Tensor<int, 2> > mat3(row_major, 2, 3); 96 TensorMap<Tensor<int, 2, RowMajor> > mat4(col_major, 2, 3) 263 Tensor<int, 1> tensor = start_tensor; local [all...] |
cxx11_tensor_chipping.cpp | 12 #include <Eigen/CXX11/Tensor> 14 using Eigen::Tensor; 19 Tensor<float, 5, DataLayout> tensor(2,3,5,7,11); 20 tensor.setRandom(); 22 Tensor<float, 4, DataLayout> chip1; 23 chip1 = tensor.template chip<0>(1); 34 VERIFY_IS_EQUAL(chip1(i,j,k,l), tensor(1,i,j,k,l)); 40 Tensor<float, 4, DataLayout> chip2 = tensor.template chip<1>(1) 224 Tensor<float, 5, DataLayout> tensor = input1; local [all...] |
cxx11_tensor_morphing.cpp | 12 #include <Eigen/CXX11/Tensor> 14 using Eigen::Tensor; 19 Tensor<float, 5> tensor1(2,3,1,7,1); 22 Tensor<float, 3> tensor2(2,3,7); 23 Tensor<float, 2> tensor3(6,7); 24 Tensor<float, 2> tensor4(2,21); 26 Tensor<float, 3>::Dimensions dim1(2,3,7); 28 Tensor<float, 2>::Dimensions dim2(6,7); 30 Tensor<float, 2>::Dimensions dim3(2,21); 52 TensorMap<Tensor<float, 5>> tensor1(m1.data(), 2,3,5,7,11) 449 Eigen::Tensor<float, 3, DataLayout> tensor = local [all...] |
cxx11_tensor_reduction.cpp | 13 #include <Eigen/CXX11/Tensor> 15 using Eigen::Tensor; 20 Tensor<float, 0, DataLayout> tensor; local 21 tensor.setRandom(); 24 Tensor<float, 0, DataLayout> result = tensor.sum(reduction_axis); 25 VERIFY_IS_EQUAL(result(), tensor()); 29 Tensor<float, 1, DataLayout> tensor(7) [all...] |