12 #include <Eigen/CXX11/Tensor> 43 vec1(0) = 4; vec2(0) = 0;
44 vec1(1) = 8; vec2(1) = 1;
45 vec1(2) = 15; vec2(2) = 2;
46 vec1(3) = 16; vec2(3) = 3;
47 vec1(4) = 23; vec2(4) = 4;
48 vec1(5) = 42; vec2(5) = 5;
122 for (
int i = 0;
i < 2; ++
i) {
123 for (
int j = 0;
j < 3; ++
j) {
124 for (
int k = 0; k < 7; ++k) {
148 for (
int i = 0;
i < 2; ++
i) {
149 for (
int j = 0;
j < 3; ++
j) {
150 for (
int k = 0; k < 7; ++k) {
166 for (
int i = 0;
i < 2; ++
i) {
167 for (
int j = 0;
j < 3; ++
j) {
168 for (
int k = 0; k < 7; ++k) {
192 for (
int i = 0;
i < 2; ++
i) {
193 for (
int j = 0;
j < 3; ++
j) {
194 for (
int k = 0; k < 7; ++k) {
205 for (
int i = 0;
i < 2; ++
i) {
206 for (
int j = 0;
j < 3; ++
j) {
207 for (
int k = 0; k < 7; ++k) {
227 for (
int i = 0;
i < 2; ++
i) {
228 for (
int j = 0;
j < 3; ++
j) {
229 for (
int k = 0; k < 7; ++k) {
251 for (
int i = 0;
i < 2; ++
i) {
252 for (
int j = 0;
j < 3; ++
j) {
253 for (
int k = 0; k < 7; ++k) {
262 int sum2 =
f(tensor);
308 scalar3.data()[0] = 8;
309 scalar4.data()[0] = 14;
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index size() const
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index dimension(Index n) const
static int f(const TensorMap< Tensor< int, 3 > > &tensor)
#define EIGEN_STATIC_ASSERT(CONDITION, MSG)
MatrixXd mat1(size, size)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index rank() const
#define VERIFY_IS_EQUAL(a, b)
static const T & add_const(T &value)
A tensor expression mapping an existing array of data.
static void test_from_tensor()
static SO4::VectorN2 vec4(const Matrix4 &Q)
EIGEN_DECLARE_TEST(cxx11_tensor_map)
The fixed sized version of the tensor class.
static void test_0d_const_tensor()
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar * data()
#define CALL_SUBTEST(FUNC)
static Vector9 vec3(const Matrix3 &R)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index dimension(std::size_t n) const
static void test_casting()
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index size() const
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index rank() const
static void test_0d_const_tensor_map()