mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Added support for patch extraction
This commit is contained in:
@@ -243,6 +243,12 @@ class TensorBase<Derived, ReadOnlyAccessors>
|
||||
return TensorConcatenationOp<Axis, const Derived, const OtherDerived>(derived(), other.derived(), axis);
|
||||
}
|
||||
|
||||
template <typename PatchDims> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
|
||||
const TensorPatchOp<const PatchDims, const Derived>
|
||||
extract_patches(const PatchDims& patch_dims) const {
|
||||
return TensorPatchOp<const PatchDims, const Derived>(derived(), patch_dims);
|
||||
}
|
||||
|
||||
// Morphing operators.
|
||||
template <typename NewDimensions> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
|
||||
const TensorReshapingOp<const NewDimensions, const Derived>
|
||||
|
||||
Reference in New Issue
Block a user