Lines Matching full:rows

19   Index rows = m.rows();  in array()  local
22 ArrayType m1 = ArrayType::Random(rows, cols), in array()
23 m2 = ArrayType::Random(rows, cols), in array()
24 m3(rows, cols); in array()
26 ColVectorType cv1 = ColVectorType::Random(rows); in array()
34 VERIFY_IS_APPROX(m1 + s1, ArrayType::Constant(rows,cols,s1) + m1); in array()
36 VERIFY_IS_APPROX(m1 - s1, m1 - ArrayType::Constant(rows,cols,s1)); in array()
37 VERIFY_IS_APPROX(s1 - m1, ArrayType::Constant(rows,cols,s1) - m1); in array()
38 VERIFY_IS_APPROX((m1*Scalar(2)) - s2, (m1+m1) - ArrayType::Constant(rows,cols,s2) ); in array()
48 …ArrayType::Map(m1.data(), m1.rows(), m1.cols()) -= ArrayType::Map(m2.data(), m2.rows(), m2.cols()); in array()
52 …ArrayType::Map(m1.data(), m1.rows(), m1.cols()) += ArrayType::Map(m2.data(), m2.rows(), m2.cols()); in array()
56 …ArrayType::Map(m1.data(), m1.rows(), m1.cols()) *= ArrayType::Map(m2.data(), m2.rows(), m2.cols()); in array()
60 m2 = ArrayType::Random(rows,cols); in array()
62 …ArrayType::Map(m1.data(), m1.rows(), m1.cols()) /= ArrayType::Map(m2.data(), m2.rows(), m2.cols())… in array()
93 Index rows = m.rows(); in comparisons() local
96 Index r = internal::random<Index>(0, rows-1), in comparisons()
99 ArrayType m1 = ArrayType::Random(rows, cols), in comparisons()
100 m2 = ArrayType::Random(rows, cols), in comparisons()
101 m3(rows, cols); in comparisons()
105 if (rows*cols>1) in comparisons()
126 for (int i=0; i<rows; ++i) in comparisons()
128 VERIFY_IS_APPROX( (m1.abs()<ArrayType::Constant(rows,cols,mid)) in comparisons()
129 .select(ArrayType::Zero(rows,cols),m1), m3); in comparisons()
131 VERIFY_IS_APPROX( (m1.abs()<ArrayType::Constant(rows,cols,mid)) in comparisons()
133 VERIFY_IS_APPROX( (m1.abs()>=ArrayType::Constant(rows,cols,mid)) in comparisons()
139 VERIFY(((m1.abs()+1)>RealScalar(0.1)).count() == rows*cols); in comparisons()
143 VERIFY( (m1<RealScalar(0) || m1>=RealScalar(0)).count() == rows*cols); in comparisons()
150 …((m1.abs()+1)>RealScalar(0.1)).colwise().count(), ArrayOfIndices::Constant(cols,rows).transpose()); in comparisons()
151 …VERIFY_IS_APPROX(((m1.abs()+1)>RealScalar(0.1)).rowwise().count(), ArrayOfIndices::Constant(rows, … in comparisons()
162 Index rows = m.rows(); in array_real() local
165 ArrayType m1 = ArrayType::Random(rows, cols), in array_real()
166 m2 = ArrayType::Random(rows, cols), in array_real()
167 m3(rows, cols); in array_real()
199 ArrayType exponents = ArrayType::Constant(rows, cols, RealScalar(2)); in array_real()
209 m1 += ArrayType::Constant(rows,cols,Scalar(tiny)); in array_real()
224 Index rows = m.rows(); in array_complex() local
227 ArrayType m1 = ArrayType::Random(rows, cols), in array_complex()
228 m2(rows, cols); in array_complex()
230 for (Index i = 0; i < m.rows(); ++i) in array_complex()
243 Index rows = m.rows(); in min_max() local
246 ArrayType m1 = ArrayType::Random(rows, cols); in min_max()
252 …VERIFY_IS_APPROX(ArrayType::Constant(rows,cols, minM1), (m1.min)(ArrayType::Constant(rows,cols, mi… in min_max()
253 VERIFY_IS_APPROX(m1, (m1.min)(ArrayType::Constant(rows,cols, maxM1))); in min_max()
255 …VERIFY_IS_APPROX(ArrayType::Constant(rows,cols, maxM1), (m1.max)(ArrayType::Constant(rows,cols, ma… in min_max()
256 VERIFY_IS_APPROX(m1, (m1.max)(ArrayType::Constant(rows,cols, minM1))); in min_max()
259 VERIFY_IS_APPROX(ArrayType::Constant(rows,cols, minM1), (m1.min)( minM1)); in min_max()
262 VERIFY_IS_APPROX(ArrayType::Constant(rows,cols, maxM1), (m1.max)( maxM1)); in min_max()