Home | History | Annotate | Download | only in test

Lines Matching full:rows

16   enum { Rows = MatrixType::RowsAtCompileTime, Cols = MatrixType::ColsAtCompileTime };
17 typedef Matrix<Scalar, Rows, 1> VectorType;
19 typedef Matrix<Scalar, Rows, Rows> SquareMatrixType;
20 typedef DiagonalMatrix<Scalar, Rows> LeftDiagonalMatrix;
22 typedef Matrix<Scalar, Rows==Dynamic?Dynamic:2*Rows, Cols==Dynamic?Dynamic:2*Cols> BigMatrix;
23 Index rows = m.rows();
26 MatrixType m1 = MatrixType::Random(rows, cols),
27 m2 = MatrixType::Random(rows, cols);
28 VectorType v1 = VectorType::Random(rows),
29 v2 = VectorType::Random(rows);
50 sq_m1.block(0,0,rows,rows) = ldm1;
55 Index i = internal::random<Index>(0, rows-1);
69 big.setZero(2*rows, 2*cols);
71 big.block(i,j,rows,cols) = m1;
72 big.block(i,j,rows,cols) = v1.asDiagonal() * big.block(i,j,rows,cols);
74 VERIFY_IS_APPROX((big.block(i,j,rows,cols)) , v1.asDiagonal() * m1 );
76 big.block(i,j,rows,cols) = m1;
77 big.block(i,j,rows,cols) = big.block(i,j,rows,cols) * rv1.asDiagonal();
78 VERIFY_IS_APPROX((big.block(i,j,rows,cols)) , m1 * rv1.asDiagonal() );