Home | History | Annotate | Download | only in test

Lines Matching defs:MatrixType

15 template<typename MatrixType> struct Wrapper
17 MatrixType m_mat;
18 inline Wrapper(const MatrixType &x) : m_mat(x) {}
19 inline operator const MatrixType& () const { return m_mat; }
20 inline operator MatrixType& () { return m_mat; }
23 template<typename MatrixType> void ctor_init1(const MatrixType& m)
29 MatrixType m0 = MatrixType::Random(rows,cols);
31 VERIFY_EVALUATION_COUNT( MatrixType m1(m0), 1);
32 VERIFY_EVALUATION_COUNT( MatrixType m2(m0+m0), 1);
33 VERIFY_EVALUATION_COUNT( MatrixType m2(m0.block(0,0,rows,cols)) , 1);
35 Wrapper<MatrixType> wrapper(m0);
36 VERIFY_EVALUATION_COUNT( MatrixType m3(wrapper) , 1);