mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-12 17:33:15 +08:00
Added missing EIGEN_DEVICE_FUNC qualifiers
This commit is contained in:
parent
c36bc2d445
commit
857adbbd52
@ -128,7 +128,7 @@ DenseBase<Derived>::Random()
|
|||||||
* \sa class CwiseNullaryOp, setRandom(Index), setRandom(Index,Index)
|
* \sa class CwiseNullaryOp, setRandom(Index), setRandom(Index,Index)
|
||||||
*/
|
*/
|
||||||
template<typename Derived>
|
template<typename Derived>
|
||||||
inline Derived& DenseBase<Derived>::setRandom()
|
EIGEN_DEVICE_FUNC inline Derived& DenseBase<Derived>::setRandom()
|
||||||
{
|
{
|
||||||
return *this = Random(rows(), cols());
|
return *this = Random(rows(), cols());
|
||||||
}
|
}
|
||||||
|
@ -115,7 +115,7 @@ template<typename MatrixType,int RowFactor,int ColFactor> class Replicate
|
|||||||
*/
|
*/
|
||||||
template<typename Derived>
|
template<typename Derived>
|
||||||
template<int RowFactor, int ColFactor>
|
template<int RowFactor, int ColFactor>
|
||||||
const Replicate<Derived,RowFactor,ColFactor>
|
EIGEN_DEVICE_FUNC const Replicate<Derived,RowFactor,ColFactor>
|
||||||
DenseBase<Derived>::replicate() const
|
DenseBase<Derived>::replicate() const
|
||||||
{
|
{
|
||||||
return Replicate<Derived,RowFactor,ColFactor>(derived());
|
return Replicate<Derived,RowFactor,ColFactor>(derived());
|
||||||
@ -130,7 +130,7 @@ DenseBase<Derived>::replicate() const
|
|||||||
* \sa VectorwiseOp::replicate(), DenseBase::replicate(), class Replicate
|
* \sa VectorwiseOp::replicate(), DenseBase::replicate(), class Replicate
|
||||||
*/
|
*/
|
||||||
template<typename ExpressionType, int Direction>
|
template<typename ExpressionType, int Direction>
|
||||||
const typename VectorwiseOp<ExpressionType,Direction>::ReplicateReturnType
|
EIGEN_DEVICE_FUNC const typename VectorwiseOp<ExpressionType,Direction>::ReplicateReturnType
|
||||||
VectorwiseOp<ExpressionType,Direction>::replicate(Index factor) const
|
VectorwiseOp<ExpressionType,Direction>::replicate(Index factor) const
|
||||||
{
|
{
|
||||||
return typename VectorwiseOp<ExpressionType,Direction>::ReplicateReturnType
|
return typename VectorwiseOp<ExpressionType,Direction>::ReplicateReturnType
|
||||||
|
@ -114,7 +114,7 @@ template<typename MatrixType, int Direction> class Reverse
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
template<typename Derived>
|
template<typename Derived>
|
||||||
inline typename DenseBase<Derived>::ReverseReturnType
|
EIGEN_DEVICE_FUNC inline typename DenseBase<Derived>::ReverseReturnType
|
||||||
DenseBase<Derived>::reverse()
|
DenseBase<Derived>::reverse()
|
||||||
{
|
{
|
||||||
return ReverseReturnType(derived());
|
return ReverseReturnType(derived());
|
||||||
@ -136,7 +136,7 @@ DenseBase<Derived>::reverse()
|
|||||||
*
|
*
|
||||||
* \sa VectorwiseOp::reverseInPlace(), reverse() */
|
* \sa VectorwiseOp::reverseInPlace(), reverse() */
|
||||||
template<typename Derived>
|
template<typename Derived>
|
||||||
inline void DenseBase<Derived>::reverseInPlace()
|
EIGEN_DEVICE_FUNC inline void DenseBase<Derived>::reverseInPlace()
|
||||||
{
|
{
|
||||||
if(cols()>rows())
|
if(cols()>rows())
|
||||||
{
|
{
|
||||||
@ -201,7 +201,7 @@ struct vectorwise_reverse_inplace_impl<Horizontal>
|
|||||||
*
|
*
|
||||||
* \sa DenseBase::reverseInPlace(), reverse() */
|
* \sa DenseBase::reverseInPlace(), reverse() */
|
||||||
template<typename ExpressionType, int Direction>
|
template<typename ExpressionType, int Direction>
|
||||||
void VectorwiseOp<ExpressionType,Direction>::reverseInPlace()
|
EIGEN_DEVICE_FUNC void VectorwiseOp<ExpressionType,Direction>::reverseInPlace()
|
||||||
{
|
{
|
||||||
internal::vectorwise_reverse_inplace_impl<Direction>::run(_expression().const_cast_derived());
|
internal::vectorwise_reverse_inplace_impl<Direction>::run(_expression().const_cast_derived());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user