Class MHO_CyclicRotator.
More...
#include <MHO_CyclicRotator.hh>
|
virtual bool | ExecuteInPlace (XArrayType *in) override |
| Function ExecuteInPlace - executes the rotation. More...
|
|
virtual bool | ExecuteOutOfPlace (const XArrayType *in, XArrayType *out) override |
| Function ExecuteOutOfPlace - executes the rotation. More...
|
|
virtual bool | InitializeInPlace (XArrayType *in) override |
| Initializes in-place rotation and sets flag if input is not nullptr. More...
|
|
virtual bool | InitializeOutOfPlace (const XArrayType *in, XArrayType *out) override |
| Function InitializeOutOfPlace - executes the rotation. More...
|
|
template<class XArrayType>
class hops::MHO_CyclicRotator< XArrayType >
Class MHO_CyclicRotator.
Applies a cyclic rotation to the contents on a multidimensional array by some specified offset for each dimension.
- Author
- J. Barrett - barre.nosp@m.ttj@.nosp@m.mit.e.nosp@m.du
- Date
- Mon Aug 23 15:27:52 2021 -0400
◆ MHO_CyclicRotator()
template<class XArrayType >
◆ ~MHO_CyclicRotator()
template<class XArrayType >
◆ ExecuteInPlace()
template<class XArrayType >
|
inlineoverrideprotectedvirtual |
◆ ExecuteOutOfPlace()
template<class XArrayType >
|
inlineoverrideprotectedvirtual |
Function ExecuteOutOfPlace - executes the rotation.
- 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 rotation and sets flag if input is not nullptr.
- Parameters
-
in | Input array for initialization. |
- Returns
- True if initialized successfully, false otherwise.
- Note
- This is a virtual function.
Implements hops::MHO_UnaryOperator< XArrayType >.
◆ InitializeOutOfPlace()
template<class XArrayType >
virtual bool hops::MHO_CyclicRotator< XArrayType >::InitializeOutOfPlace |
( |
const XArrayType * |
in, |
|
|
XArrayType * |
out |
|
) |
| |
|
inlineoverrideprotectedvirtual |
Function InitializeOutOfPlace - executes the rotation.
- Parameters
-
in | (const XArrayType*) |
out | (XArrayType*) |
- Returns
- Return value (bool)
- Note
- This is a virtual function.
Implements hops::MHO_UnaryOperator< XArrayType >.
◆ SetOffset()
template<class XArrayType >
set the offset for the cyclic rotation in each dimension (default is zero...do nothing)
- Parameters
-
dimension_index | Index of the dimension to set the offset for |
offset_value | (int64_t) |
A negative offset_value results in a "right" rotation: e.g. rot by 1: [0 1 2 3] -> [3 0 1 2] A positive offset_value results in a "left" rotation: e.g. rot by -1: [0 1 2 3] -> [1 2 3 0]
The documentation for this class was generated from the following file: