mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 11:49:02 +08:00
Added a few more missing EIGEN_DEVICE_FUNC statements
This commit is contained in:
parent
466bcc589e
commit
9df186c140
@ -105,7 +105,7 @@ class Tensor : public TensorBase<Tensor<Scalar_, NumIndices_, Options_, IndexTyp
|
|||||||
|
|
||||||
#ifdef EIGEN_HAS_VARIADIC_TEMPLATES
|
#ifdef EIGEN_HAS_VARIADIC_TEMPLATES
|
||||||
template<typename... IndexTypes>
|
template<typename... IndexTypes>
|
||||||
inline const Scalar& coeff(Index firstIndex, Index secondIndex, IndexTypes... otherIndices) const
|
EIGEN_DEVICE_FUNC inline const Scalar& coeff(Index firstIndex, Index secondIndex, IndexTypes... otherIndices) const
|
||||||
{
|
{
|
||||||
// The number of indices used to access a tensor coefficient must be equal to the rank of the tensor.
|
// The number of indices used to access a tensor coefficient must be equal to the rank of the tensor.
|
||||||
EIGEN_STATIC_ASSERT(sizeof...(otherIndices) + 2 == NumIndices, YOU_MADE_A_PROGRAMMING_MISTAKE)
|
EIGEN_STATIC_ASSERT(sizeof...(otherIndices) + 2 == NumIndices, YOU_MADE_A_PROGRAMMING_MISTAKE)
|
||||||
@ -341,7 +341,7 @@ class Tensor : public TensorBase<Tensor<Scalar_, NumIndices_, Options_, IndexTyp
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef EIGEN_HAS_VARIADIC_TEMPLATES
|
#ifdef EIGEN_HAS_VARIADIC_TEMPLATES
|
||||||
template<typename... IndexTypes>
|
template<typename... IndexTypes> EIGEN_DEVICE_FUNC
|
||||||
void resize(Index firstDimension, IndexTypes... otherDimensions)
|
void resize(Index firstDimension, IndexTypes... otherDimensions)
|
||||||
{
|
{
|
||||||
// The number of dimensions used to resize a tensor must be equal to the rank of the tensor.
|
// The number of dimensions used to resize a tensor must be equal to the rank of the tensor.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user