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:
@@ -46,19 +46,16 @@ template<typename VectorType> void vectorOps(const VectorType& v)
|
||||
|
||||
a += b;
|
||||
a += b + b;
|
||||
a.xpr() -= b;
|
||||
a.xpr() -= b + b;
|
||||
a.alias() += a + a;
|
||||
}
|
||||
|
||||
void EigenTest::testVectorOps()
|
||||
{
|
||||
vectorOps(Vector<float, 1>());
|
||||
vectorOps(Vector<int, 2>());
|
||||
vectorOps(Vector<double, 3>());
|
||||
vectorOps(Vector<complex<float>, 4>());
|
||||
vectorOps(VectorX<float>(1));
|
||||
vectorOps(VectorX<int>(2));
|
||||
vectorOps(VectorX<double>(3));
|
||||
vectorOps(VectorX<complex<float> >(4));
|
||||
vectorOps(Vector2i());
|
||||
vectorOps(Vector3d());
|
||||
vectorOps(Vector4cf());
|
||||
/*vectorOps(VectorXf(1));
|
||||
vectorOps(VectorXi(2));
|
||||
vectorOps(VectorXd(3));
|
||||
vectorOps(VectorXcf(4));*/
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user