aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/plugins/BlockMethods.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2018-10-09 17:02:16 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2018-10-09 17:02:16 +0200
commit7a882c05ababc38dc211602586fcabbcd9b75e76 (patch)
treea7e253e8baa73e4e9ee1b2116698908fef262a9b /Eigen/src/plugins/BlockMethods.h
parent93a6192e98166de6dee452c1ea07dba69fbb66eb (diff)
Fix compilation on CUDA
Diffstat (limited to 'Eigen/src/plugins/BlockMethods.h')
-rw-r--r--Eigen/src/plugins/BlockMethods.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Eigen/src/plugins/BlockMethods.h b/Eigen/src/plugins/BlockMethods.h
index 528af05ec..ef620ab7a 100644
--- a/Eigen/src/plugins/BlockMethods.h
+++ b/Eigen/src/plugins/BlockMethods.h
@@ -1403,8 +1403,8 @@ innerVectors(Index outerStart, Index outerSize) const
/** \returns the i-th subvector (column or vector) according to the \c Direction
* \sa subVectors()
*/
-EIGEN_DEVICE_FUNC
template<DirectionType Direction>
+EIGEN_DEVICE_FUNC
typename internal::conditional<Direction==Vertical,ColXpr,RowXpr>::type
subVector(Index i)
{
@@ -1412,8 +1412,8 @@ subVector(Index i)
}
/** This is the const version of subVector(Index) */
-EIGEN_DEVICE_FUNC
template<DirectionType Direction>
+EIGEN_DEVICE_FUNC
typename internal::conditional<Direction==Vertical,ConstColXpr,ConstRowXpr>::type
subVector(Index i) const
{
@@ -1423,8 +1423,8 @@ subVector(Index i) const
/** \returns the number of subvectors (rows or columns) in the direction \c Direction
* \sa subVector(Index)
*/
-EIGEN_DEVICE_FUNC
template<DirectionType Direction>
+EIGEN_DEVICE_FUNC
Index subVectors() const
{ return (Direction==Vertical)?cols():rows(); }