mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
Fix some CUDA issues
This commit is contained in:
parent
412c049ba4
commit
67bfba07fd
@ -70,7 +70,10 @@ class PartialReduxExpr : public internal::dense_xpr_base< PartialReduxExpr<Matri
|
|||||||
EIGEN_DEVICE_FUNC
|
EIGEN_DEVICE_FUNC
|
||||||
Index cols() const { return (Direction==Horizontal ? 1 : m_matrix.cols()); }
|
Index cols() const { return (Direction==Horizontal ? 1 : m_matrix.cols()); }
|
||||||
|
|
||||||
|
EIGEN_DEVICE_FUNC
|
||||||
typename MatrixType::Nested nestedExpression() const { return m_matrix; }
|
typename MatrixType::Nested nestedExpression() const { return m_matrix; }
|
||||||
|
|
||||||
|
EIGEN_DEVICE_FUNC
|
||||||
const MemberOp& functor() const { return m_functor; }
|
const MemberOp& functor() const { return m_functor; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
@ -345,8 +348,8 @@ template<typename ExpressionType, int Direction> class VectorwiseOp
|
|||||||
* Output: \verbinclude PartialRedux_norm.out
|
* Output: \verbinclude PartialRedux_norm.out
|
||||||
*
|
*
|
||||||
* \sa DenseBase::norm() */
|
* \sa DenseBase::norm() */
|
||||||
EIGEN_DEVICE_FUNC
|
|
||||||
template<int p>
|
template<int p>
|
||||||
|
EIGEN_DEVICE_FUNC
|
||||||
const typename LpNormReturnType<p>::Type lpNorm() const
|
const typename LpNormReturnType<p>::Type lpNorm() const
|
||||||
{ return typename LpNormReturnType<p>::Type(_expression()); }
|
{ return typename LpNormReturnType<p>::Type(_expression()); }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user