Lines Matching full:rows

16   enum { Rows = MatrixType::RowsAtCompileTime, Cols = MatrixType::ColsAtCompileTime };  in diagonalmatrices()  enumerator
17 typedef Matrix<Scalar, Rows, 1> VectorType; in diagonalmatrices()
19 typedef Matrix<Scalar, Rows, Rows> SquareMatrixType; in diagonalmatrices()
21 typedef DiagonalMatrix<Scalar, Rows> LeftDiagonalMatrix; in diagonalmatrices()
23 typedef Matrix<Scalar, Rows==Dynamic?Dynamic:2*Rows, Cols==Dynamic?Dynamic:2*Cols> BigMatrix; in diagonalmatrices()
24 Index rows = m.rows(); in diagonalmatrices() local
27 MatrixType m1 = MatrixType::Random(rows, cols), in diagonalmatrices()
28 m2 = MatrixType::Random(rows, cols); in diagonalmatrices()
29 VectorType v1 = VectorType::Random(rows), in diagonalmatrices()
30 v2 = VectorType::Random(rows); in diagonalmatrices()
51 sq_m1.block(0,0,rows,rows) = ldm1; in diagonalmatrices()
56 Index i = internal::random<Index>(0, rows-1); in diagonalmatrices()
69 if(rows>1) in diagonalmatrices()
71 DynMatrixType tmp = m1.topRows(rows/2), res; in diagonalmatrices()
72 VERIFY_IS_APPROX( (res = m1.topRows(rows/2) * rv1.asDiagonal()), tmp * rv1.asDiagonal() ); in diagonalmatrices()
73 …VERIFY_IS_APPROX( (res = v1.head(rows/2).asDiagonal()*m1.topRows(rows/2)), v1.head(rows/2).asDiago… in diagonalmatrices()
77 big.setZero(2*rows, 2*cols); in diagonalmatrices()
79 big.block(i,j,rows,cols) = m1; in diagonalmatrices()
80 big.block(i,j,rows,cols) = v1.asDiagonal() * big.block(i,j,rows,cols); in diagonalmatrices()
82 VERIFY_IS_APPROX((big.block(i,j,rows,cols)) , v1.asDiagonal() * m1 ); in diagonalmatrices()
84 big.block(i,j,rows,cols) = m1; in diagonalmatrices()
85 big.block(i,j,rows,cols) = big.block(i,j,rows,cols) * rv1.asDiagonal(); in diagonalmatrices()
86 VERIFY_IS_APPROX((big.block(i,j,rows,cols)) , m1 * rv1.asDiagonal() ); in diagonalmatrices()