Lines Matching full:cols
16 enum { Rows = MatrixType::RowsAtCompileTime, Cols = MatrixType::ColsAtCompileTime }; in diagonalmatrices() enumerator
18 typedef Matrix<Scalar, 1, Cols> RowVectorType; in diagonalmatrices()
21 typedef DiagonalMatrix<Scalar, Cols> RightDiagonalMatrix; in diagonalmatrices()
22 typedef Matrix<Scalar, Rows==Dynamic?Dynamic:2*Rows, Cols==Dynamic?Dynamic:2*Cols> BigMatrix; in diagonalmatrices()
24 Index cols = m.cols(); in diagonalmatrices() local
26 MatrixType m1 = MatrixType::Random(rows, cols), in diagonalmatrices()
27 m2 = MatrixType::Random(rows, cols); in diagonalmatrices()
30 RowVectorType rv1 = RowVectorType::Random(cols), in diagonalmatrices()
31 rv2 = RowVectorType::Random(cols); in diagonalmatrices()
56 Index j = internal::random<Index>(0, cols-1); in diagonalmatrices()
69 big.setZero(2*rows, 2*cols); in diagonalmatrices()
71 big.block(i,j,rows,cols) = m1; in diagonalmatrices()
72 big.block(i,j,rows,cols) = v1.asDiagonal() * big.block(i,j,rows,cols); in diagonalmatrices()
74 VERIFY_IS_APPROX((big.block(i,j,rows,cols)) , v1.asDiagonal() * m1 ); in diagonalmatrices()
76 big.block(i,j,rows,cols) = m1; in diagonalmatrices()
77 big.block(i,j,rows,cols) = big.block(i,j,rows,cols) * rv1.asDiagonal(); in diagonalmatrices()
78 VERIFY_IS_APPROX((big.block(i,j,rows,cols)) , m1 * rv1.asDiagonal() ); in diagonalmatrices()