11 #define TEST_ENABLE_TEMPORARY_TRACKING 15 template <
int N,
typename XprType>
19 typename XprType::PlainObject
res(mat.
rows(), mat.
cols());
22 for(
int i=0;
i<
N; ++
i)
26 template <
int N,
typename ReferenceType,
typename XprType>
56 if((MatrixType::SizeAtCompileTime==
Dynamic))
70 VERIFY( verify_eval_type<10>(m1, m1) );
73 VERIFY( verify_eval_type<3>(2*m1, 2*m1) );
74 VERIFY( verify_eval_type<4>(2*m1, m1) );
78 VERIFY( verify_eval_type<2>(2*m1, 2*m1) );
79 VERIFY( verify_eval_type<3>(2*m1, m1) );
81 VERIFY( verify_eval_type<2>(m1+m1, m1+m1) );
82 VERIFY( verify_eval_type<3>(m1+m1, m1) );
83 VERIFY( verify_eval_type<1>(m1*m1.transpose(),
m2) );
84 VERIFY( verify_eval_type<1>(m1*(m1+m1).transpose(), m2) );
85 VERIFY( verify_eval_type<2>(m1*m1.transpose(),
m2) );
86 VERIFY( verify_eval_type<1>(m1+m1*m1, m1) );
#define VERIFY_RAISES_ASSERT(a)
#define CALL_SUBTEST_4(FUNC)
#define CALL_SUBTEST_3(FUNC)
void diagonal(const MatrixType &m)
Holds information about the various numeric (i.e. scalar) types allowed by Eigen. ...
static long int nb_temporaries
void run_nesting_ops_2(const MatrixType &_m)
cout<< "Here is the matrix m:"<< endl<< m<< endl;Matrix< ptrdiff_t, 3, 1 > res
#define VERIFY_EVALUATION_COUNT(XPR, N)
#define VERIFY_IS_APPROX(a, b)
Generic expression where a coefficient-wise binary operator is applied to two expressions.
bool verify_eval_type(const XprType &, const ReferenceType &)
#define CALL_SUBTEST_1(FUNC)
void run_nesting_ops_1(const MatrixType &_m)
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
EIGEN_DECLARE_TEST(nesting_ops)
#define TEST_SET_BUT_UNUSED_VARIABLE(X)
#define EIGEN_TEST_MAX_SIZE
A triangularView< Lower >().adjoint().solveInPlace(B)
void use_n_times(const XprType &xpr)
#define CALL_SUBTEST_2(FUNC)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_CONSTEXPR Index rows() const EIGEN_NOEXCEPT
Generic expression where a coefficient-wise unary operator is applied to an expression.
The matrix class, also used for vectors and row-vectors.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_CONSTEXPR Index cols() const EIGEN_NOEXCEPT