Class MHO_SubSample.
More...
#include <MHO_SubSample.hh>
|
virtual bool | ExecuteInPlace (XArrayType *in) override |
| Executes operation in-place and updates input array from workspace. More...
|
|
virtual bool | ExecuteOutOfPlace (const XArrayType *in, XArrayType *out) override |
| Function ExecuteOutOfPlace. More...
|
|
virtual bool | InitializeInPlace (XArrayType *in) override |
| Initializes in-place execution by calling InitializeOutOfPlace with workspace and returning its result. More...
|
|
virtual bool | InitializeOutOfPlace (const XArrayType *in, XArrayType *out) override |
| Initializes output array out-of-place using input array in. More...
|
|
template<class XArrayType>
class hops::MHO_SubSample< XArrayType >
Class MHO_SubSample.
Sub-samples an array at the specified stride (e.g. select every-other point) Can only be applied to a single-axis at a time.
- Author
- J. Barrett - barre.nosp@m.ttj@.nosp@m.mit.e.nosp@m.du
- Date
- Tue Aug 24 15:18:04 2021 -0400
◆ MHO_SubSample()
template<class XArrayType >
◆ ~MHO_SubSample()
template<class XArrayType >
◆ ExecuteInPlace()
template<class XArrayType >
|
inlineoverrideprotectedvirtual |
Executes operation in-place and updates input array from workspace.
- Parameters
-
in | Input array to be modified in-place. |
- Returns
- Status of the execution operation.
- Note
- This is a virtual function.
Implements hops::MHO_UnaryOperator< XArrayType >.
◆ ExecuteOutOfPlace()
template<class XArrayType >
virtual bool hops::MHO_SubSample< XArrayType >::ExecuteOutOfPlace |
( |
const XArrayType * |
in, |
|
|
XArrayType * |
out |
|
) |
| |
|
inlineoverrideprotectedvirtual |
Function ExecuteOutOfPlace.
- Parameters
-
in | (const XArrayType*) |
out | (XArrayType*) |
- Returns
- Return value (bool)
- Note
- This is a virtual function.
Implements hops::MHO_UnaryOperator< XArrayType >.
◆ InitializeInPlace()
template<class XArrayType >
|
inlineoverrideprotectedvirtual |
Initializes in-place execution by calling InitializeOutOfPlace with workspace and returning its result.
- Parameters
-
in | Input array of type XArrayType* |
- Returns
- Boolean indicating success/failure of initialization
- Note
- This is a virtual function.
Implements hops::MHO_UnaryOperator< XArrayType >.
◆ InitializeOutOfPlace()
template<class XArrayType >
virtual bool hops::MHO_SubSample< XArrayType >::InitializeOutOfPlace |
( |
const XArrayType * |
in, |
|
|
XArrayType * |
out |
|
) |
| |
|
inlineoverrideprotectedvirtual |
Initializes output array out-of-place using input array in.
- Parameters
-
in | Input array of type XArrayType |
out | Output array of type XArrayType |
- Returns
- True if initialization is successful, false otherwise.
- Note
- This is a virtual function.
Implements hops::MHO_UnaryOperator< XArrayType >.
◆ SetDimensionAndStride()
template<class XArrayType >
void hops::MHO_SubSample< XArrayType >::SetDimensionAndStride |
( |
std::size_t |
dimension_index, |
|
|
std::size_t |
stride |
|
) |
| |
|
inline |
set the axis to sub sample, and the stride at which samples are selected
- Parameters
-
dimension_index | Index of the dimension to set (must be less than array rank). |
stride | Stride at which samples are selected along the specified dimension. |
The documentation for this class was generated from the following file: