![]() |
LibraryLink Utilities
3.0.1
Modern C++ wrapper over LibraryLink and WSTP
|
Simple, light-weight, non-owning, data-type-agnostic wrappper over MNumericArray.
Intended for use in functions that only need to access MNumericArray metadata, where it can alleviate the need for introducing template parameters for MNumericArray passing mode (like in GenericNumericArray) or data type (like in NumericArray class).
Inheritance diagram for LLU::NumericArrayView:
Collaboration diagram for LLU::NumericArrayView:#include <NumericArray.hpp>
Public Member Functions | |
| NumericArrayView (const GenericNumericArray &gNA) | |
| Create a NumericArrayView from a GenericNumericArray. More... | |
| NumericArrayView (MNumericArray mna) | |
| Create a NumericArrayView from a raw MNumericArray. More... | |
| mint | getRank () const override |
| Get rank. More... | |
| mint const * | getDimensions () const override |
| Get dimensions. More... | |
| mint | getFlattenedLength () const override |
| Get length. More... | |
| numericarray_data_t | type () const final |
| Get the data type of this array. More... | |
| void * | rawData () const noexcept override |
| Get access to the raw data. More... | |
|
inline |
Create a NumericArrayView from a GenericNumericArray.
| gNA | - a GenericNumericArray |
|
inline |
Create a NumericArrayView from a raw MNumericArray.
| mna | - a raw MNumericArray |
|
inlineoverridevirtual |
Get dimensions.
Implements LLU::NumericArrayInterface.
|
inlineoverridevirtual |
Get length.
Implements LLU::NumericArrayInterface.
|
inlineoverridevirtual |
|
inlineoverridevirtualnoexcept |
Get access to the raw data.
Use with caution.
Implements LLU::NumericArrayInterface.
|
inlinefinalvirtual |
Get the data type of this array.
numericarray_data_t) Implements LLU::NumericArrayInterface.