aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/VectorwiseOp.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2015-10-08 16:30:28 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2015-10-08 16:30:28 +0200
commit67bfba07fde58e0cc983486f49e79fc29fbeee49 (patch)
treeec4f0d314e84dcb70b0c941e3e2114d92bf10376 /Eigen/src/Core/VectorwiseOp.h
parent412c049ba47eedc45f0943db7094bf5308c681c2 (diff)
Fix some CUDA issues
Diffstat (limited to 'Eigen/src/Core/VectorwiseOp.h')
-rw-r--r--Eigen/src/Core/VectorwiseOp.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Eigen/src/Core/VectorwiseOp.h b/Eigen/src/Core/VectorwiseOp.h
index 5de53732e..dbc272dae 100644
--- a/Eigen/src/Core/VectorwiseOp.h
+++ b/Eigen/src/Core/VectorwiseOp.h
@@ -70,7 +70,10 @@ class PartialReduxExpr : public internal::dense_xpr_base< PartialReduxExpr<Matri
EIGEN_DEVICE_FUNC
Index cols() const { return (Direction==Horizontal ? 1 : m_matrix.cols()); }
+ EIGEN_DEVICE_FUNC
typename MatrixType::Nested nestedExpression() const { return m_matrix; }
+
+ EIGEN_DEVICE_FUNC
const MemberOp& functor() const { return m_functor; }
protected:
@@ -345,8 +348,8 @@ template<typename ExpressionType, int Direction> class VectorwiseOp
* Output: \verbinclude PartialRedux_norm.out
*
* \sa DenseBase::norm() */
- EIGEN_DEVICE_FUNC
template<int p>
+ EIGEN_DEVICE_FUNC
const typename LpNormReturnType<p>::Type lpNorm() const
{ return typename LpNormReturnType<p>::Type(_expression()); }