aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/ForwardDeclarations.h
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-01-13 19:55:23 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-01-13 19:55:23 +0000
commit89a134ba0b40b7cfc4554e3f06813fd32bbe2ede (patch)
tree2d0aa14b49b6b80802371f6bb5ac8ee6360d87d1 /Eigen/src/Core/ForwardDeclarations.h
parente05a1aba1d83a7286e48576a053276c16633a7f1 (diff)
big architecture change dissociating "actual" dimensions from "maximum possible"
dimension. The advantage is that evaluating a dynamic-sized block in a fixed-size matrix no longer causes a dynamic memory allocation. Other new thing: IntAtRunTimeIfDynamic allows storing an integer at zero cost if it is known at compile time.
Diffstat (limited to 'Eigen/src/Core/ForwardDeclarations.h')
-rw-r--r--Eigen/src/Core/ForwardDeclarations.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Eigen/src/Core/ForwardDeclarations.h b/Eigen/src/Core/ForwardDeclarations.h
index ea5d0dd36..07c6e3f69 100644
--- a/Eigen/src/Core/ForwardDeclarations.h
+++ b/Eigen/src/Core/ForwardDeclarations.h
@@ -26,7 +26,7 @@
#ifndef EIGEN_FORWARDDECLARATIONS_H
#define EIGEN_FORWARDDECLARATIONS_H
-template<typename _Scalar, int _Rows, int _Cols, int _StorageOrder> class Matrix;
+template<typename _Scalar, int _Rows, int _Cols, int _StorageOrder, int _MaxRows, int _MaxCols> class Matrix;
template<typename MatrixType> class MatrixRef;
template<typename NewScalar, typename MatrixType> class Cast;
template<typename MatrixType> class Row;
@@ -55,10 +55,10 @@ template<typename T> struct Reference
typedef T Type;
};
-template<typename _Scalar, int _Rows, int _Cols, int _StorageOrder>
-struct Reference<Matrix<_Scalar, _Rows, _Cols, _StorageOrder> >
+template<typename _Scalar, int _Rows, int _Cols, int _StorageOrder, int _MaxRows, int _MaxCols>
+struct Reference<Matrix<_Scalar, _Rows, _Cols, _StorageOrder, _MaxRows, _MaxCols> >
{
- typedef MatrixRef<Matrix<_Scalar, _Rows, _Cols, _StorageOrder> > Type;
+ typedef MatrixRef<Matrix<_Scalar, _Rows, _Cols, _StorageOrder, _MaxRows, _MaxCols> > Type;
};
#endif // EIGEN_FORWARDDECLARATIONS_H