Home | History | Annotate | Download | only in test

Lines Matching refs:Cols

327 void createRandomPIMatrixOfRank(typename MatrixType::Index desired_rank, typename MatrixType::Index rows, typename MatrixType::Index cols, MatrixType& m);
329 void createRandomPIMatrixOfRank(typename MatrixType::Index desired_rank, typename MatrixType::Index rows, typename MatrixType::Index cols, MatrixType& m)
333 enum { Rows = MatrixType::RowsAtCompileTime, Cols = MatrixType::ColsAtCompileTime };
337 typedef Matrix<Scalar, Cols, Cols> MatrixBType;
341 m.setZero(rows,cols);
348 m = VectorType::Random(rows).normalized() * VectorType::Random(cols).normalized().transpose();
353 MatrixType d = MatrixType::Identity(rows,cols);
354 MatrixBType b = MatrixBType::Random(cols,cols);
357 const Index diag_size = (std::min)(d.rows(),d.cols());