aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/CwiseNullaryOp.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2010-01-18 22:56:25 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2010-01-18 22:56:25 +0100
commit0158d789067613b256cafc1f52790a2bb6df39c2 (patch)
tree04cb59bdaeb112944552fac584417244a1ed2b9b /Eigen/src/Core/CwiseNullaryOp.h
parentc70d54257b8cb3c79f412777348642f71ab7c7f2 (diff)
extend CwiseNullaryOp to support Array
Diffstat (limited to 'Eigen/src/Core/CwiseNullaryOp.h')
-rw-r--r--Eigen/src/Core/CwiseNullaryOp.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Eigen/src/Core/CwiseNullaryOp.h b/Eigen/src/Core/CwiseNullaryOp.h
index 53bab77dc..e7926ba38 100644
--- a/Eigen/src/Core/CwiseNullaryOp.h
+++ b/Eigen/src/Core/CwiseNullaryOp.h
@@ -55,11 +55,12 @@ struct ei_traits<CwiseNullaryOp<NullaryOp, MatrixType> > : ei_traits<MatrixType>
template<typename NullaryOp, typename MatrixType>
class CwiseNullaryOp : ei_no_assignment_operator,
- public MatrixBase<CwiseNullaryOp<NullaryOp, MatrixType> >
+ public MatrixType::template MakeBase< CwiseNullaryOp<NullaryOp, MatrixType> >::Type
{
public:
- EIGEN_GENERIC_PUBLIC_INTERFACE(CwiseNullaryOp)
+ typedef typename MatrixType::template MakeBase< CwiseNullaryOp<NullaryOp, MatrixType> >::Type Base;
+ _EIGEN_DENSE_PUBLIC_INTERFACE(CwiseNullaryOp)
CwiseNullaryOp(int rows, int cols, const NullaryOp& func = NullaryOp())
: m_rows(rows), m_cols(cols), m_functor(func)