aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2009-08-06 17:28:49 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2009-08-06 17:28:49 +0200
commit543a7857562b2058718d39ce444f3c0495373fc8 (patch)
tree652a1f5f7568a46d8019fbe80f26769d8cfb945d /Eigen
parent2707a6b87c330a150893760e982c8765fa41b40c (diff)
Fix compilation in sparse module
Diffstat (limited to 'Eigen')
-rw-r--r--Eigen/src/Sparse/SparseBlock.h2
-rw-r--r--Eigen/src/Sparse/SparseMatrixBase.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/Eigen/src/Sparse/SparseBlock.h b/Eigen/src/Sparse/SparseBlock.h
index 5c148efdc..6659a88e2 100644
--- a/Eigen/src/Sparse/SparseBlock.h
+++ b/Eigen/src/Sparse/SparseBlock.h
@@ -35,6 +35,8 @@ struct ei_traits<SparseInnerVectorSet<MatrixType, Size> >
Flags = MatrixType::Flags,
RowsAtCompileTime = IsRowMajor ? Size : MatrixType::RowsAtCompileTime,
ColsAtCompileTime = IsRowMajor ? MatrixType::ColsAtCompileTime : Size,
+ MaxRowsAtCompileTime = RowsAtCompileTime,
+ MaxColsAtCompileTime = ColsAtCompileTime,
CoeffReadCost = MatrixType::CoeffReadCost
};
};
diff --git a/Eigen/src/Sparse/SparseMatrixBase.h b/Eigen/src/Sparse/SparseMatrixBase.h
index 8659fe475..d0b7c98c8 100644
--- a/Eigen/src/Sparse/SparseMatrixBase.h
+++ b/Eigen/src/Sparse/SparseMatrixBase.h
@@ -36,7 +36,7 @@
*
*
*/
-template<typename Derived> class SparseMatrixBase
+template<typename Derived> class SparseMatrixBase : public AnyMatrixBase<Derived>
{
public: