mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Added support for tensor inflation.
This commit is contained in:
@@ -471,6 +471,11 @@ class TensorBase<Derived, ReadOnlyAccessors>
|
||||
stride(const Strides& strides) const {
|
||||
return TensorStridingOp<const Strides, const Derived>(derived(), strides);
|
||||
}
|
||||
template <typename Strides> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
|
||||
const TensorInflationOp<const Strides, const Derived>
|
||||
inflate(const Strides& strides) const {
|
||||
return TensorInflationOp<const Strides, const Derived>(derived(), strides);
|
||||
}
|
||||
|
||||
// Support for custom unary and binary operations
|
||||
template <typename CustomUnaryFunc>
|
||||
|
||||
Reference in New Issue
Block a user