mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-11 19:29:02 +08:00
unit test fix for default to row major
This commit is contained in:
parent
6be06745df
commit
7e836ccb4c
@ -44,14 +44,15 @@ template<typename MatrixType> void product_notemporary(const MatrixType& m)
|
|||||||
typedef typename MatrixType::RealScalar RealScalar;
|
typedef typename MatrixType::RealScalar RealScalar;
|
||||||
typedef Matrix<Scalar, 1, Dynamic> RowVectorType;
|
typedef Matrix<Scalar, 1, Dynamic> RowVectorType;
|
||||||
typedef Matrix<Scalar, Dynamic, 1> ColVectorType;
|
typedef Matrix<Scalar, Dynamic, 1> ColVectorType;
|
||||||
|
typedef Matrix<Scalar, Dynamic, Dynamic, ColMajor> ColMajorMatrixType;
|
||||||
typedef Matrix<Scalar, Dynamic, Dynamic, RowMajor> RowMajorMatrixType;
|
typedef Matrix<Scalar, Dynamic, Dynamic, RowMajor> RowMajorMatrixType;
|
||||||
|
|
||||||
Index rows = m.rows();
|
Index rows = m.rows();
|
||||||
Index cols = m.cols();
|
Index cols = m.cols();
|
||||||
|
|
||||||
MatrixType m1 = MatrixType::Random(rows, cols),
|
ColMajorMatrixType m1 = MatrixType::Random(rows, cols),
|
||||||
m2 = MatrixType::Random(rows, cols),
|
m2 = MatrixType::Random(rows, cols),
|
||||||
m3(rows, cols);
|
m3(rows, cols);
|
||||||
RowVectorType rv1 = RowVectorType::Random(rows), rvres(rows);
|
RowVectorType rv1 = RowVectorType::Random(rows), rvres(rows);
|
||||||
ColVectorType vc2 = ColVectorType::Random(cols), cvres(cols);
|
ColVectorType vc2 = ColVectorType::Random(cols), cvres(cols);
|
||||||
RowMajorMatrixType rm3(rows, cols);
|
RowMajorMatrixType rm3(rows, cols);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user