Lines Matching refs:rows
33 Index rows = m.rows(); in product() local
38 MatrixType m1 = MatrixType::Random(rows, cols), in product()
39 m2 = MatrixType::Random(rows, cols), in product()
40 m3(rows, cols); in product()
42 identity = RowSquareMatrixType::Identity(rows, rows), in product()
43 square = RowSquareMatrixType::Random(rows, rows), in product()
44 res = RowSquareMatrixType::Random(rows, rows); in product()
48 RowVectorType v1 = RowVectorType::Random(rows); in product()
54 Index r = internal::random<Index>(0, rows-1), in product()
78 VERIFY_IS_APPROX(MatrixType::Identity(rows, cols)(r,c), static_cast<Scalar>(r==c)); in product()
80 if (rows!=cols) in product()
85 if (!NumTraits<Scalar>::IsInteger && (std::min)(rows,cols)>1) in product()
94 if (!NumTraits<Scalar>::IsInteger && (std::min)(rows,cols)>1) in product()
106 if (!NumTraits<Scalar>::IsInteger && (std::min)(rows,cols)>1) in product()
136 for (int i=0; i<rows; ++i) in product()
140 for (int i=0; i<rows; ++i) in product()
147 if (!NumTraits<Scalar>::IsInteger && (std::min)(rows,cols)>1) in product()
160 …VERIFY_IS_APPROX(res.block(0,0,1,rows).noalias() = m1.col(0).transpose() * square.transpose(), … in product()
161 …VERIFY_IS_APPROX(res.block(0,0,1,rows).noalias() = m1.block(0,0,rows,1).transpose() * square.trans… in product()
162 …VERIFY_IS_APPROX(res.block(0,0,1,rows).noalias() = m1.col(0).transpose() * square, … in product()
163 …VERIFY_IS_APPROX(res.block(0,0,1,rows).noalias() = m1.block(0,0,rows,1).transpose() * square, … in product()
173 RowVectorType w1(rows); in product()
174 VERIFY_IS_APPROX(square * v1.block(0,0,rows,1), square * v1); in product()
175 VERIFY_IS_APPROX(w1.noalias() = square * v1.block(0,0,rows,1), square * v1); in product()
176 VERIFY_IS_APPROX(w1.block(0,0,rows,1).noalias() = square * v1.block(0,0,rows,1), square * v1); in product()
202 VERIFY_IS_APPROX(m1.col(c) * m1.row(r), m1.block(0,c,rows,1) * m1.block(r,0,1,cols)); in product()
203 …se() * m1.col(c).transpose(), m1.block(r,0,1,cols).transpose() * m1.block(0,c,rows,1).transpose()); in product()
204 VERIFY_IS_APPROX(m1.block(0,c,rows,1) * m1.row(r), m1.block(0,c,rows,1) * m1.block(r,0,1,cols)); in product()
205 VERIFY_IS_APPROX(m1.col(c) * m1.block(r,0,1,cols), m1.block(0,c,rows,1) * m1.block(r,0,1,cols)); in product()
206 VERIFY_IS_APPROX(m1.leftCols(1) * m1.row(r), m1.block(0,0,rows,1) * m1.block(r,0,1,cols)); in product()
207 VERIFY_IS_APPROX(m1.col(c) * m1.topRows(1), m1.block(0,c,rows,1) * m1.block(0,0,1,cols)); in product()