aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/internal/Util.h
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2007-09-27 19:38:40 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2007-09-27 19:38:40 +0000
commit5160e9d0292b7ebf39376803c5b7764f0f838714 (patch)
treef4c59929c888c4a0a18529f22e9c326947bf276b /src/internal/Util.h
parent4e299afb1f1f19f470920f63b39c5a91be138788 (diff)
Half-way commit prefixing object names. I am forced to commit now
because I renamed a file once with a wrong filename and svn refuses to let me rename it again, tells me i should propagate first.
Diffstat (limited to 'src/internal/Util.h')
-rw-r--r--src/internal/Util.h43
1 files changed, 19 insertions, 24 deletions
diff --git a/src/internal/Util.h b/src/internal/Util.h
index 179f70ffd..d4362383e 100644
--- a/src/internal/Util.h
+++ b/src/internal/Util.h
@@ -41,53 +41,48 @@
assert(col >= 0 && col < (matrix).cols())
//forward declarations
-template<typename _Scalar, int _Rows, int _Cols> class Matrix;
-template<typename MatrixType> class MatrixAlias;
-template<typename MatrixType> class MatrixRef;
-template<typename MatrixType> class MatrixRow;
-template<typename MatrixType> class MatrixCol;
-template<typename MatrixType> class MatrixMinor;
-template<typename MatrixType> class MatrixBlock;
-template<typename Lhs, typename Rhs> class MatrixSum;
-template<typename Lhs, typename Rhs> class MatrixDifference;
-template<typename Lhs, typename Rhs> class MatrixProduct;
-template<typename MatrixType> class ScalarProduct;
+template<typename _Scalar, int _Rows, int _Cols> class EiMatrix;
+template<typename MatrixType> class EiMatrixRef;
+template<typename MatrixType> class EiRow;
+template<typename MatrixType> class EiColumn;
+template<typename MatrixType> class EiMinor;
+template<typename MatrixType> class EiBlock;
+template<typename Lhs, typename Rhs> class EiSum;
+template<typename Lhs, typename Rhs> class EiDifference;
+template<typename Lhs, typename Rhs> class EiMatrixProduct;
+template<typename MatrixType> class EiScalarProduct;
-template<typename T> struct ForwardDecl
+template<typename T> struct EiForwardDecl
{
typedef T Ref;
};
-template<typename _Scalar, int _Rows, int _Cols> struct ForwardDecl<Matrix<_Scalar, _Rows, _Cols> >
+template<typename _Scalar, int _Rows, int _Cols>
+struct EiForwardDecl<EiMatrix<_Scalar, _Rows, _Cols> >
{
- typedef MatrixRef<Matrix<_Scalar, _Rows, _Cols> > Ref;
+ typedef EiMatrixRef<EiMatrix<_Scalar, _Rows, _Cols> > Ref;
};
-template<typename MatrixType> struct ForwardDecl<MatrixAlias<MatrixType> >
-{
- typedef MatrixRef<MatrixAlias<MatrixType> > Ref;
-};
-
-const int DynamicSize = -1;
+const int EiDynamic = -1;
#define EIGEN_UNUSED(x) (void)x
#define EIGEN_INHERIT_ASSIGNMENT_OPERATOR(Derived, Op) \
template<typename OtherScalar, typename OtherDerived> \
-Derived& operator Op(const EigenBase<OtherScalar, OtherDerived>& other) \
+Derived& operator Op(const EiObject<OtherScalar, OtherDerived>& other) \
{ \
- return EigenBase<Scalar, Derived>::operator Op(other); \
+ return EiObject<Scalar, Derived>::operator Op(other); \
} \
Derived& operator Op(const Derived& other) \
{ \
- return EigenBase<Scalar, Derived>::operator Op(other); \
+ return EiObject<Scalar, Derived>::operator Op(other); \
}
#define EIGEN_INHERIT_SCALAR_ASSIGNMENT_OPERATOR(Derived, Op) \
template<typename Other> \
Derived& operator Op(const Other& scalar) \
{ \
- return EigenBase<Scalar, Derived>::operator Op(scalar); \
+ return EiObject<Scalar, Derived>::operator Op(scalar); \
}
#define EIGEN_INHERIT_ASSIGNMENT_OPERATORS(Derived) \