mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Deep refactoring.
1) Kill MatrixXpr class, instead let all class inherit a common EigenBase class 2) Kill MatrixBase/Matrix/Vector classes, instead introduce a single Matrix class, a MatrixStorage class, and typedefs to emulate vectors 3) Huge code cleanup, remove large preprocessor macros, sloccount drop to ~750 down from 1100. 4) Introduce compile-time-known sizes
This commit is contained in:
@@ -38,7 +38,7 @@ template<typename MatrixType> void matrixManip(const MatrixType& m)
|
||||
a.row(i) = b.row(i);
|
||||
a.row(i) += b.row(i);
|
||||
a.minor(i, j) = b.block(1, rows-1, 1, cols-1);
|
||||
a.alias().minor(i, j) -= a.block(1, rows-1, 1, cols-1);
|
||||
//a.alias().minor(i, j) -= a.block(1, rows-1, 1, cols-1);
|
||||
}
|
||||
|
||||
void EigenTest::testMatrixManip()
|
||||
@@ -46,7 +46,7 @@ void EigenTest::testMatrixManip()
|
||||
matrixManip(Matrix<int, 2, 3>());
|
||||
matrixManip(Matrix<double, 3, 3>());
|
||||
matrixManip(Matrix<complex<float>, 4,3>());
|
||||
matrixManip(MatrixX<int>(2, 2));
|
||||
matrixManip(MatrixX<double>(3, 5));
|
||||
matrixManip(MatrixX<complex<float> >(4, 4));
|
||||
matrixManip(MatrixXi(2, 2));
|
||||
matrixManip(MatrixXd(3, 5));
|
||||
matrixManip(MatrixXcf(4, 4));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user