Lines Matching refs:rows
20 Index rows = m.rows(); in array() local
23 ArrayType m1 = ArrayType::Random(rows, cols), in array()
24 m2 = ArrayType::Random(rows, cols), in array()
25 m3(rows, cols); in array()
29 ColVectorType cv1 = ColVectorType::Random(rows); in array()
37 VERIFY_IS_APPROX(m1 + s1, ArrayType::Constant(rows,cols,s1) + m1); in array()
39 VERIFY_IS_APPROX(m1 - s1, m1 - ArrayType::Constant(rows,cols,s1)); in array()
40 VERIFY_IS_APPROX(s1 - m1, ArrayType::Constant(rows,cols,s1) - m1); in array()
41 VERIFY_IS_APPROX((m1*Scalar(2)) - s2, (m1+m1) - ArrayType::Constant(rows,cols,s2) ); in array()
51 …ArrayType::Map(m1.data(), m1.rows(), m1.cols()) -= ArrayType::Map(m2.data(), m2.rows(), m2.cols()); in array()
55 …ArrayType::Map(m1.data(), m1.rows(), m1.cols()) += ArrayType::Map(m2.data(), m2.rows(), m2.cols()); in array()
59 …ArrayType::Map(m1.data(), m1.rows(), m1.cols()) *= ArrayType::Map(m2.data(), m2.rows(), m2.cols()); in array()
63 m2 = ArrayType::Random(rows,cols); in array()
65 …ArrayType::Map(m1.data(), m1.rows(), m1.cols()) /= ArrayType::Map(m2.data(), m2.rows(), m2.cols())… in array()
89 VERIFY_IS_APPROX((m3 = s1), ArrayType::Constant(rows,cols,s1)); in array()
90 VERIFY_IS_APPROX((m3 = 1), ArrayType::Constant(rows,cols,1)); in array()
91 VERIFY_IS_APPROX((m3.topLeftCorner(rows,cols) = 1), ArrayType::Constant(rows,cols,1)); in array()
113 ArrayType exponents = ArrayType::Constant(rows, cols, RealScalar(2)); in array()
120 VERIFY_IS_APPROX(Eigen::pow(m1(0,0), exponents), ArrayType::Constant(rows,cols,m1(0,0)*m1(0,0))); in array()
124 OneDArrayType o1(rows); in array()
125 VERIFY(o1.size()==rows); in array()
126 OneDArrayType o4((int)rows); in array()
127 VERIFY(o4.size()==rows); in array()
137 Index rows = m.rows(); in comparisons() local
140 Index r = internal::random<Index>(0, rows-1), in comparisons()
143 ArrayType m1 = ArrayType::Random(rows, cols), in comparisons()
144 m2 = ArrayType::Random(rows, cols), in comparisons()
145 m3(rows, cols), in comparisons()
152 if (rows*cols>1) in comparisons()
179 for (int i=0; i<rows; ++i) in comparisons()
181 VERIFY_IS_APPROX( (m1.abs()<ArrayType::Constant(rows,cols,mid)) in comparisons()
182 .select(ArrayType::Zero(rows,cols),m1), m3); in comparisons()
184 VERIFY_IS_APPROX( (m1.abs()<ArrayType::Constant(rows,cols,mid)) in comparisons()
186 VERIFY_IS_APPROX( (m1.abs()>=ArrayType::Constant(rows,cols,mid)) in comparisons()
192 VERIFY(((m1.abs()+1)>RealScalar(0.1)).count() == rows*cols); in comparisons()
196 VERIFY( (m1<RealScalar(0) || m1>=RealScalar(0)).count() == rows*cols); in comparisons()
203 …((m1.abs()+1)>RealScalar(0.1)).colwise().count(), ArrayOfIndices::Constant(cols,rows).transpose()); in comparisons()
204 …VERIFY_IS_APPROX(((m1.abs()+1)>RealScalar(0.1)).rowwise().count(), ArrayOfIndices::Constant(rows, … in comparisons()
215 Index rows = m.rows(); in array_real() local
218 ArrayType m1 = ArrayType::Random(rows, cols), in array_real()
219 m2 = ArrayType::Random(rows, cols), in array_real()
220 m3(rows, cols), in array_real()
309 m1 += ArrayType::Constant(rows,cols,Scalar(tiny)); in array_real()
326 Index rows = m.rows(); in array_complex() local
329 ArrayType m1 = ArrayType::Random(rows, cols), in array_complex()
330 m2(rows, cols), in array_complex()
336 Array<RealScalar, -1, -1> m3(rows, cols); in array_complex()
338 for (Index i = 0; i < m.rows(); ++i) in array_complex()
373 for (Index i = 0; i < m.rows(); ++i) in array_complex()
413 m1 += ArrayType::Constant(rows,cols,Scalar(tiny)); in array_complex()
430 Index rows = m.rows(); in min_max() local
433 ArrayType m1 = ArrayType::Random(rows, cols); in min_max()
439 …VERIFY_IS_APPROX(ArrayType::Constant(rows,cols, minM1), (m1.min)(ArrayType::Constant(rows,cols, mi… in min_max()
440 VERIFY_IS_APPROX(m1, (m1.min)(ArrayType::Constant(rows,cols, maxM1))); in min_max()
442 …VERIFY_IS_APPROX(ArrayType::Constant(rows,cols, maxM1), (m1.max)(ArrayType::Constant(rows,cols, ma… in min_max()
443 VERIFY_IS_APPROX(m1, (m1.max)(ArrayType::Constant(rows,cols, minM1))); in min_max()
446 VERIFY_IS_APPROX(ArrayType::Constant(rows,cols, minM1), (m1.min)( minM1)); in min_max()
449 VERIFY_IS_APPROX(ArrayType::Constant(rows,cols, maxM1), (m1.max)( maxM1)); in min_max()