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:
Benoit Jacob
2007-09-26 14:06:14 +00:00
parent 1af61c6ff0
commit 55227b1f63
18 changed files with 612 additions and 1048 deletions

View File

@@ -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));*/
}