mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Fix compilation error in createRandomMatrixOfRank()
This commit is contained in:
@@ -230,7 +230,7 @@ template<typename Derived>
|
|||||||
void createRandomMatrixOfRank(int desired_rank, int rows, int cols, Eigen::MatrixBase<Derived>& m)
|
void createRandomMatrixOfRank(int desired_rank, int rows, int cols, Eigen::MatrixBase<Derived>& m)
|
||||||
{
|
{
|
||||||
typedef Derived MatrixType;
|
typedef Derived MatrixType;
|
||||||
typedef MatrixType::Scalar Scalar;
|
typedef typename ei_traits<MatrixType>::Scalar Scalar;
|
||||||
typedef Matrix<Scalar, MatrixType::ColsAtCompileTime, 1> VectorType;
|
typedef Matrix<Scalar, MatrixType::ColsAtCompileTime, 1> VectorType;
|
||||||
|
|
||||||
MatrixType a = MatrixType::Random(rows,rows);
|
MatrixType a = MatrixType::Random(rows,rows);
|
||||||
|
|||||||
Reference in New Issue
Block a user