12 #include <Eigen/CXX11/Tensor> 26 for (
int i = 0; i < 2; ++i) {
27 for (
int j = 0; j < 3; ++j) {
28 for (
int k = 0; k < 7; ++k) {
29 VERIFY_IS_EQUAL(tensor(i,j,k), tensor2(k,j,i));
47 for (
int i = 0; i < 2; ++i) {
48 for (
int j = 0; j < 3; ++j) {
49 for (
int k = 0; k < 7; ++k) {
50 VERIFY_IS_EQUAL(tensor(i,j,k), tensor2(k,j,i));
static void test_swap_as_lvalue()
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index dimension(std::size_t n) const
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Tensor< Scalar_, NumIndices_, Options_, IndexType_ > & setRandom()
static void test_simple_swap()
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorLayoutSwapOp< const Tensor< Scalar_, NumIndices_, Options_, IndexType_ > > swap_layout() const
void test_cxx11_tensor_layout_swap()