diff options
author | Gael Guennebaud <g.gael@free.fr> | 2008-06-23 13:25:22 +0000 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2008-06-23 13:25:22 +0000 |
commit | ea1990ef3d95a2e042b0ececdc4f21c0f5473cc2 (patch) | |
tree | 2001fc51c1ab5bfdf6a7d30360ec53c66b0eab10 /Eigen/src/Core/CwiseBinaryOp.h | |
parent | 03d19f3bae65d5dff1417cc4bd4ce32262cdaa3a (diff) |
add experimental code for sparse matrix:
- uses the common "Compressed Column Storage" scheme
- supports every unary and binary operators with xpr template
assuming binaryOp(0,0) == 0 and unaryOp(0) = 0 (otherwise a sparse
matrix doesnot make sense)
- this is the first commit, so of course, there are still several shorcommings !
Diffstat (limited to 'Eigen/src/Core/CwiseBinaryOp.h')
-rw-r--r-- | Eigen/src/Core/CwiseBinaryOp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Eigen/src/Core/CwiseBinaryOp.h b/Eigen/src/Core/CwiseBinaryOp.h index b12aa65bd..ec4619781 100644 --- a/Eigen/src/Core/CwiseBinaryOp.h +++ b/Eigen/src/Core/CwiseBinaryOp.h @@ -84,6 +84,8 @@ class CwiseBinaryOp : ei_no_assignment_operator, typedef typename ei_traits<CwiseBinaryOp>::LhsNested LhsNested; typedef typename ei_traits<CwiseBinaryOp>::RhsNested RhsNested; + class InnerIterator; + inline CwiseBinaryOp(const Lhs& lhs, const Rhs& rhs, const BinaryOp& func = BinaryOp()) : m_lhs(lhs), m_rhs(rhs), m_functor(func) { |