mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-13 04:09:10 +08:00
Fix compilation on CUDA
This commit is contained in:
parent
93a6192e98
commit
7a882c05ab
@ -1403,8 +1403,8 @@ innerVectors(Index outerStart, Index outerSize) const
|
|||||||
/** \returns the i-th subvector (column or vector) according to the \c Direction
|
/** \returns the i-th subvector (column or vector) according to the \c Direction
|
||||||
* \sa subVectors()
|
* \sa subVectors()
|
||||||
*/
|
*/
|
||||||
EIGEN_DEVICE_FUNC
|
|
||||||
template<DirectionType Direction>
|
template<DirectionType Direction>
|
||||||
|
EIGEN_DEVICE_FUNC
|
||||||
typename internal::conditional<Direction==Vertical,ColXpr,RowXpr>::type
|
typename internal::conditional<Direction==Vertical,ColXpr,RowXpr>::type
|
||||||
subVector(Index i)
|
subVector(Index i)
|
||||||
{
|
{
|
||||||
@ -1412,8 +1412,8 @@ subVector(Index i)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** This is the const version of subVector(Index) */
|
/** This is the const version of subVector(Index) */
|
||||||
EIGEN_DEVICE_FUNC
|
|
||||||
template<DirectionType Direction>
|
template<DirectionType Direction>
|
||||||
|
EIGEN_DEVICE_FUNC
|
||||||
typename internal::conditional<Direction==Vertical,ConstColXpr,ConstRowXpr>::type
|
typename internal::conditional<Direction==Vertical,ConstColXpr,ConstRowXpr>::type
|
||||||
subVector(Index i) const
|
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
|
/** \returns the number of subvectors (rows or columns) in the direction \c Direction
|
||||||
* \sa subVector(Index)
|
* \sa subVector(Index)
|
||||||
*/
|
*/
|
||||||
EIGEN_DEVICE_FUNC
|
|
||||||
template<DirectionType Direction>
|
template<DirectionType Direction>
|
||||||
|
EIGEN_DEVICE_FUNC
|
||||||
Index subVectors() const
|
Index subVectors() const
|
||||||
{ return (Direction==Vertical)?cols():rows(); }
|
{ return (Direction==Vertical)?cols():rows(); }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user