Lines Matching full:rows
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 };
336 typedef Matrix<Scalar, Rows, Rows> MatrixAType;
341 m.setZero(rows,cols);
348 m = VectorType::Random(rows).normalized() * VectorType::Random(cols).normalized().transpose();
352 MatrixAType a = MatrixAType::Random(rows,rows);
353 MatrixType d = MatrixType::Identity(rows,cols);
357 const Index diag_size = (std::min)(d.rows(),d.cols());