Lines Matching refs:Cols
311 void createRandomPIMatrixOfRank(typename MatrixType::Index desired_rank, typename MatrixType::Index rows, typename MatrixType::Index cols, MatrixType& m)
315 enum { Rows = MatrixType::RowsAtCompileTime, Cols = MatrixType::ColsAtCompileTime };
319 typedef Matrix<Scalar, Cols, Cols> MatrixBType;
323 m.setZero(rows,cols);
330 m = VectorType::Random(rows).normalized() * VectorType::Random(cols).normalized().transpose();
335 MatrixType d = MatrixType::Identity(rows,cols);
336 MatrixBType b = MatrixBType::Random(cols,cols);
339 const Index diag_size = (std::min)(d.rows(),d.cols());