Lines Matching refs:Matrix
16 typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, 1> ColVectorType;
17 typedef Matrix<Scalar, 1, MatrixType::ColsAtCompileTime> RowVectorType;
34 VERIFY_IS_APPROX((m1.array() + s1).matrix(), MatrixType::Constant(rows,cols,s1) + m1);
35 VERIFY_IS_APPROX(((m1*Scalar(2)).array() - s2).matrix(), (m1+m1) - MatrixType::Constant(rows,cols,s2) );
38 VERIFY_IS_APPROX(m3, (m1.array() + s2).matrix());
41 VERIFY_IS_APPROX(m3, (m1.array() - s1).matrix());
65 const Scalar& ref_m1 = m.matrix().array().coeffRef(0);
66 const Scalar& ref_m2 = m.matrix().array().coeffRef(0,0);
67 const Scalar& ref_a1 = m.array().matrix().coeffRef(0);
68 const Scalar& ref_a2 = m.array().matrix().coeffRef(0,0);
77 m1.array().matrix().coeffRef(0,0) = 3;
79 m1.array().matrix()(0,0) = 4;
138 VERIFY( ((m1.array()<RealScalar(0)).matrix() && (m1.array()>RealScalar(0)).matrix()).count() == 0);
139 VERIFY( ((m1.array()<RealScalar(0)).matrix() || (m1.array()>=RealScalar(0)).matrix()).count() == rows*cols);
141 VERIFY( ((m1.array()<-a).matrix() || (m1.array()>a).matrix()).count() == (m1.cwiseAbs().array()>a).count());
143 typedef Matrix<typename MatrixType::Index, Dynamic, 1> VectorOfIndices;
146 VERIFY_IS_APPROX(((m1.array().abs()+1)>RealScalar(0.1)).matrix().colwise().count(), VectorOfIndices::Constant(cols,rows).transpose());
147 VERIFY_IS_APPROX(((m1.array().abs()+1)>RealScalar(0.1)).matrix().rowwise().count(), VectorOfIndices::Constant(rows, cols));
216 typedef Matrix<Scalar,Dynamic,Dynamic> MatrixType;
218 typedef Matrix<Scalar,Dynamic,1> VectorType;
230 a2.matrix().resize(rows+1,cols+1);
234 a1.matrix().resize(cols);
245 // Check propagation of LvalueBit through Array/Matrix-Wrapper
253 MatrixWrapper<const Array4i> AM = A.matrix();
266 CALL_SUBTEST_1( array_for_matrix(Matrix<float, 1, 1>()) );
274 CALL_SUBTEST_1( comparisons(Matrix<float, 1, 1>()) );
281 CALL_SUBTEST_1( cwise_min_max(Matrix<float, 1, 1>()) );
288 CALL_SUBTEST_1( lpNorm(Matrix<float, 1, 1>()) );