Home | History | Annotate | Download | only in test

Lines Matching refs:Cols

17   enum { Rows = MatrixType::RowsAtCompileTime, Cols = MatrixType::ColsAtCompileTime };
19 typedef Matrix<Scalar, 1, Cols> RowVectorType;
22 typedef DiagonalMatrix<Scalar, Cols> RightDiagonalMatrix;
23 typedef Matrix<Scalar, Rows==Dynamic?Dynamic:2*Rows, Cols==Dynamic?Dynamic:2*Cols> BigMatrix;
25 Index cols = m.cols();
27 MatrixType m1 = MatrixType::Random(rows, cols),
28 m2 = MatrixType::Random(rows, cols);
31 RowVectorType rv1 = RowVectorType::Random(cols),
32 rv2 = RowVectorType::Random(cols);
55 Index j = internal::random<Index>(0, cols-1);
68 big.setZero(2*rows, 2*cols);
70 big.block(i,j,rows,cols) = m1;
71 big.block(i,j,rows,cols) = v1.asDiagonal() * big.block(i,j,rows,cols);
73 VERIFY_IS_APPROX((big.block(i,j,rows,cols)) , v1.asDiagonal() * m1 );
75 big.block(i,j,rows,cols) = m1;
76 big.block(i,j,rows,cols) = big.block(i,j,rows,cols) * rv1.asDiagonal();
77 VERIFY_IS_APPROX((big.block(i,j,rows,cols)) , m1 * rv1.asDiagonal() );