• Home
  • Raw
  • Download

Lines Matching refs:cols

20   Index cols = m.cols();   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()
27 RowVectorType rv1 = RowVectorType::Random(cols); 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()
94 Index cols = m.cols(); in comparisons() local
97 c = internal::random<Index>(0, cols-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()
125 for (int j=0; j<cols; ++j) 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 …VERIFY_IS_APPROX(((m1.abs()+1)>RealScalar(0.1)).colwise().count(), ArrayOfIndices::Constant(cols,r… in comparisons()
151 …_IS_APPROX(((m1.abs()+1)>RealScalar(0.1)).rowwise().count(), ArrayOfIndices::Constant(rows, cols)); in comparisons()
163 Index cols = m.cols(); 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()
225 Index cols = m.cols(); in array_complex() local
227 ArrayType m1 = ArrayType::Random(rows, cols), in array_complex()
228 m2(rows, cols); in array_complex()
231 for (Index j = 0; j < m.cols(); ++j) in array_complex()
244 Index cols = m.cols(); 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()