12 #include <Eigen/CXX11/Tensor> 43 scalar3 = scalar1 + scalar2;
56 vec1(0) = 4.0; vec2(0) = 0.0;
57 vec1(1) = 8.0; vec2(1) = 1.0;
58 vec1(2) = 15.0; vec2(2) = 2.0;
59 vec1(3) = 16.0; vec2(3) = 3.0;
60 vec1(4) = 23.0; vec2(4) = 4.0;
61 vec1(5) = 42.0; vec2(5) = 5.0;
66 for (
int i = 0;
i < 6; ++
i) {
71 for (
int i = 0;
i < 6; ++
i) {
111 vec1(0) = 4.0; vec2(0) = 0.0;
112 vec1(1) = 8.0; vec2(1) = 1.0;
113 vec1(2) = 15.0; vec2(2) = 2.0;
114 vec1(3) = 16.0; vec2(3) = 3.0;
115 vec1(4) = 23.0; vec2(4) = 4.0;
116 vec1(5) = 42.0; vec2(5) = 5.0;
120 vec3 = vec1.sqrt() + vec2;
192 for (
int i = 0;
i < 2; ++
i) {
193 for (
int j = 0;
j < 3; ++
j) {
194 for (
int k = 0; k < 7; ++k) {
214 for (
int i = 0;
i < 2; ++
i) {
215 for (
int j = 0;
j < 3; ++
j) {
216 for (
int k = 0; k < 7; ++k) {
230 for (
int i = 0;
i < 2; ++
i) {
231 for (
int j = 0;
j < 3; ++
j) {
232 for (
int k = 0; k < 7; ++k) {
240 mat3 = mat1.pow(3.5
f);
243 for (
int i = 0;
i < 2; ++
i) {
244 for (
int j = 0;
j < 3; ++
j) {
245 for (
int k = 0; k < 7; ++k) {
EIGEN_DECLARE_TEST(cxx11_tensor_fixed_size)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE std::ptrdiff_t array_prod(const Sizes< Indices... > &)
#define VERIFY_IS_NOT_EQUAL(a, b)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar * data()
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Dimensions & dimensions() const
MatrixXd mat1(size, size)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index size() const
#define VERIFY_IS_APPROX(a, b)
#define VERIFY_IS_EQUAL(a, b)
A tensor expression mapping an existing array of data.
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
static void test_tensor_map()
static SO4::VectorN2 vec4(const Matrix4 &Q)
The fixed sized version of the tensor class.
#define CALL_SUBTEST(FUNC)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index rank() const
static Vector9 vec3(const Matrix3 &R)
int EIGEN_BLAS_FUNC() copy(int *n, RealScalar *px, int *incx, RealScalar *py, int *incy)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index size() const
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index rank() const