Lines Matching refs:MatrixType
13 template<typename MatrixType> void array(const MatrixType& m)
19 typedef typename MatrixType::Scalar Scalar;
21 typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, 1> VectorType;
26 MatrixType m1 = MatrixType::Random(rows, cols),
27 m2 = MatrixType::Random(rows, cols),
35 VERIFY_IS_APPROX(m1.cwise() + s1, MatrixType::Constant(rows,cols,s1) + m1);
36 VERIFY_IS_APPROX((m1*Scalar(2)).cwise() - s2, (m1+m1) - MatrixType::Constant(rows,cols,s2) );
52 template<typename MatrixType> void comparisons(const MatrixType& m)
54 typedef typename MatrixType::Scalar Scalar;
56 typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, 1> VectorType;
64 MatrixType m1 = MatrixType::Random(rows, cols),
65 m2 = MatrixType::Random(rows, cols),
91 VERIFY_IS_APPROX( (m1.cwise().abs().cwise()<MatrixType::Constant(rows,cols,mid))
92 .select(MatrixType::Zero(rows,cols),m1), m3);
94 VERIFY_IS_APPROX( (m1.cwise().abs().cwise()<MatrixType::Constant(rows,cols,mid))
96 VERIFY_IS_APPROX( (m1.cwise().abs().cwise()>=MatrixType::Constant(rows,cols,mid))