LibraryLink Utilities  3.0.1
Modern C++ wrapper over LibraryLink and WSTP
LLU::NumericArrayInterface Struct Referenceabstract

Description

Abstract class that defines a basic set of operations on a numeric array.

+ Inheritance diagram for LLU::NumericArrayInterface:

#include <Interfaces.h>

Public Member Functions

virtual mint getRank () const =0
 Get rank. More...
 
virtual mint const * getDimensions () const =0
 Get dimensions. More...
 
virtual mint getFlattenedLength () const =0
 Get length. More...
 
virtual numericarray_data_t type () const =0
 Get the data type of this array. More...
 
virtual void * rawData () const =0
 Get access to the raw data. More...
 

Member Function Documentation

◆ getDimensions()

virtual mint const* LLU::NumericArrayInterface::getDimensions ( ) const
pure virtual

◆ getFlattenedLength()

virtual mint LLU::NumericArrayInterface::getFlattenedLength ( ) const
pure virtual

◆ getRank()

virtual mint LLU::NumericArrayInterface::getRank ( ) const
pure virtual

◆ rawData()

virtual void* LLU::NumericArrayInterface::rawData ( ) const
pure virtual

Get access to the raw data.

Use with caution.

Returns
pointer to the raw data
See also
http://reference.wolfram.com/language/LibraryLink/ref/callback/MNumericArray_getData.html

Implemented in LLU::MContainer< MArgumentType::NumericArray >, and LLU::NumericArrayView.

◆ type()

virtual numericarray_data_t LLU::NumericArrayInterface::type ( ) const
pure virtual

Get the data type of this array.

Returns
type of elements (see definition of numericarray_data_t)
See also
http://reference.wolfram.com/language/LibraryLink/ref/callback/MNumericArray_getDataType.html

Implemented in LLU::MContainer< MArgumentType::NumericArray >, and LLU::NumericArrayView.