Lines Matching full:rows

19   Index rows = m.rows();  in array_for_matrix()  local
22 MatrixType m1 = MatrixType::Random(rows, cols), in array_for_matrix()
23 m2 = MatrixType::Random(rows, cols), in array_for_matrix()
24 m3(rows, cols); in array_for_matrix()
26 ColVectorType cv1 = ColVectorType::Random(rows); in array_for_matrix()
34 VERIFY_IS_APPROX((m1.array() + s1).matrix(), MatrixType::Constant(rows,cols,s1) + m1); in array_for_matrix()
35 …VERIFY_IS_APPROX(((m1*Scalar(2)).array() - s2).matrix(), (m1+m1) - MatrixType::Constant(rows,cols,… in array_for_matrix()
62 VERIFY_IS_APPROX(m1.block(0,0,rows,0).rowwise().prod(), ColVectorType::Ones(rows)); in array_for_matrix()
90 Index rows = m.rows(); in comparisons() local
93 Index r = internal::random<Index>(0, rows-1), in comparisons()
96 MatrixType m1 = MatrixType::Random(rows, cols), in comparisons()
97 m2 = MatrixType::Random(rows, cols), in comparisons()
98 m3(rows, cols); in comparisons()
102 if (rows*cols>1) in comparisons()
122 for (int i=0; i<rows; ++i) in comparisons()
124 VERIFY_IS_APPROX( (m1.array().abs()<MatrixType::Constant(rows,cols,mid).array()) in comparisons()
125 .select(MatrixType::Zero(rows,cols),m1), m3); in comparisons()
127 VERIFY_IS_APPROX( (m1.array().abs()<MatrixType::Constant(rows,cols,mid).array()) in comparisons()
129 VERIFY_IS_APPROX( (m1.array().abs()>=MatrixType::Constant(rows,cols,mid).array()) in comparisons()
135 VERIFY(((m1.array().abs()+1)>RealScalar(0.1)).count() == rows*cols); in comparisons()
139 …(m1.array()<RealScalar(0)).matrix() || (m1.array()>=RealScalar(0)).matrix()).count() == rows*cols); in comparisons()
146 …+1)>RealScalar(0.1)).matrix().colwise().count(), VectorOfIndices::Constant(cols,rows).transpose()); in comparisons()
147 …ray().abs()+1)>RealScalar(0.1)).matrix().rowwise().count(), VectorOfIndices::Constant(rows, cols)); in comparisons()
178 Index rows = m.rows(); in cwise_min_max() local
181 MatrixType m1 = MatrixType::Random(rows, cols); in cwise_min_max()
187 …VERIFY_IS_APPROX(MatrixType::Constant(rows,cols, minM1), m1.cwiseMin(MatrixType::Constant(rows,col… in cwise_min_max()
188 VERIFY_IS_APPROX(m1, m1.cwiseMin(MatrixType::Constant(rows,cols, maxM1))); in cwise_min_max()
190 …VERIFY_IS_APPROX(MatrixType::Constant(rows,cols, maxM1), m1.cwiseMax(MatrixType::Constant(rows,col… in cwise_min_max()
191 VERIFY_IS_APPROX(m1, m1.cwiseMax(MatrixType::Constant(rows,cols, minM1))); in cwise_min_max()
194 VERIFY_IS_APPROX(MatrixType::Constant(rows,cols, minM1), m1.cwiseMin( minM1)); in cwise_min_max()
199 VERIFY_IS_APPROX(MatrixType::Constant(rows,cols, maxM1), m1.cwiseMax( maxM1)); in cwise_min_max()
204 VERIFY_IS_APPROX(MatrixType::Constant(rows,cols, minM1).array(), (m1.array().min)( minM1)); in cwise_min_max()
207 VERIFY_IS_APPROX(MatrixType::Constant(rows,cols, maxM1).array(), (m1.array().max)( maxM1)); in cwise_min_max()
221 Index rows = t.rows(), cols = t.cols(); in resize() local
223 MatrixType m(rows,cols); in resize()
224 VectorType v(rows); in resize()
225 Array2DType a2(rows,cols); in resize()
226 Array1DType a1(rows); in resize()
228 m.array().resize(rows+1,cols+1); in resize()
229 VERIFY(m.rows()==rows+1 && m.cols()==cols+1); in resize()
230 a2.matrix().resize(rows+1,cols+1); in resize()
231 VERIFY(a2.rows()==rows+1 && a2.cols()==cols+1); in resize()