|
| | MHO_NDArrayView (const MHO_NDArrayView &obj) |
| |
| | MHO_NDArrayView (XValueType *ptr, const std::size_t *dim, const std::size_t *strides) |
| |
| virtual | ~MHO_NDArrayView () |
| |
| template<typename... XIndexTypeS> |
| std::enable_if<(sizeof...(XIndexTypeS)==RANK), XValueType & >::type | at (XIndexTypeS... idx) |
| | at(): same as operator(...) but with bounds checking with bounds checking More...
|
| |
| template<typename... XIndexTypeS> |
| std::enable_if<(sizeof...(XIndexTypeS)==RANK), const XValueType & >::type | at (XIndexTypeS... idx) const |
| | at(): same as const operator(...) but with bounds checking with bounds checking More...
|
| |
| iterator | begin () |
| |
| const_iterator | cbegin () const |
| |
| const_iterator | cend () const |
| |
| bool | CheckIndexValidity (const index_type &idx) const |
| |
| const_iterator | citerator_at (std::size_t offset) const |
| |
| MHO_NDArrayView * | Clone () |
| | clone functionality - Creates a deep copy of this MHO_NDArrayView object. More...
|
| |
| void | Copy (const MHO_NDArrayView &rhs) |
| | copy functionality, calling array view must have same shape as rhs More...
|
| |
| iterator | end () |
| |
| std::size_t | GetDimension (std::size_t idx) const |
| | Getter for a single dimension dimension. More...
|
| |
| index_type | GetDimensionArray () const |
| | get the dimensions/shape of the array as std::array More...
|
| |
| const std::size_t * | GetDimensions () const |
| | get the dimensions/shape of the array More...
|
| |
| void | GetDimensions (std::size_t *dim) const |
| | get the dimensions/shape of the array More...
|
| |
| index_type | GetIndicesForOffset (std::size_t offset) |
| | invert (memory) offset into array to indexes of the associated element More...
|
| |
| std::size_t | GetOffsetForIndices (const std::size_t *index) |
| | compute (memory) offset into array from a set of indexes More...
|
| |
| std::size_t | GetRank () const |
| | Getter for rank of the array view. More...
|
| |
| std::size_t | GetSize () const |
| | get the total size of the array view More...
|
| |
| std::size_t | GetStride (std::size_t idx) const |
| | Getter for stride at index. More...
|
| |
| index_type | GetStrideArray () const |
| | Getter for stride array. More...
|
| |
| const std::size_t * | GetStrides () const |
| | get element strides More...
|
| |
| void | GetStrides (std::size_t *strd) const |
| | Getter for strides array (fills passed array) More...
|
| |
| iterator | iterator_at (std::size_t offset) |
| |
| template<typename... XIndexTypeS> |
| std::enable_if<(sizeof...(XIndexTypeS)==RANK), XValueType & >::type | operator() (XIndexTypeS... idx) |
| | access operator, accepts multiple indices (,,...,) but does no bounds checking More...
|
| |
| template<typename... XIndexTypeS> |
| std::enable_if<(sizeof...(XIndexTypeS)==RANK), const XValueType & >::type | operator() (XIndexTypeS... idx) const |
| | const reference access operator, accepts multiple indices (,,...,) but does no bounds checking More...
|
| |
| MHO_NDArrayView & | operator*= (const MHO_NDArrayView &anArray) |
| | operator*= in place point-wise multiplication by another array More...
|
| |
| template<typename T > |
| std::enable_if< std::is_same< XValueType, T >::value or std::is_integral< T >::value or std::is_floating_point< T >::value, MHO_NDArrayView & >::type | operator*= (T aScalar) |
| | operator*= in place multiplication by a scalar factor More...
|
| |
| MHO_NDArrayView & | operator+= (const MHO_NDArrayView &anArray) |
| | operator+= in place point-wise addition by another array More...
|
| |
| template<typename T > |
| std::enable_if< std::is_same< XValueType, T >::value or std::is_integral< T >::value or std::is_floating_point< T >::value, MHO_NDArrayView & >::type | operator+= (T aScalar) |
| | operator+= in place addition by a scalar amount More...
|
| |
| MHO_NDArrayView & | operator-= (const MHO_NDArrayView &anArray) |
| | operator-= in place point-wise subtraction by another array More...
|
| |
| template<typename T > |
| std::enable_if< std::is_same< XValueType, T >::value or std::is_integral< T >::value or std::is_floating_point< T >::value, MHO_NDArrayView & >::type | operator-= (T aScalar) |
| | operator-= in place subtraction by a scalar amount More...
|
| |
| MHO_NDArrayView & | operator= (const MHO_NDArrayView &rhs) |
| |
| void | SetArray (const XValueType &obj) |
| | set all elements in the array to a certain value More...
|
| |
| XValueType & | ValueAt (const index_type &idx) |
| |
| const XValueType & | ValueAt (const index_type &idx) const |
| |
| void | ZeroArray () |
| | set all elements in the array to zero More...
|
| |
template<typename XValueType, std::size_t RANK>
class hops::MHO_NDArrayView< XValueType, RANK >
MHO_NDArrayView is a class to represent a view (slice) of a n-dimensional array Thu 13 Aug 2020 02:53:11 PM EDT.
- Author
- J. Barrett - barre.nosp@m.ttj@.nosp@m.mit.e.nosp@m.du
- Date
- Mon Mar 28 10:47:46 2022 -0400