LibraryLink Utilities  3.0.1
Modern C++ wrapper over LibraryLink and WSTP
LLU::NA Namespace Reference

Small namespace for NumericArray related utilities. More...

Detailed Description

Small namespace for NumericArray related utilities.

Enumerations

enum  ConversionMethod {
  Check = MNumericArray_Convert_Check,
  ClipCheck = MNumericArray_Convert_Clip_Check,
  Coerce = MNumericArray_Convert_Coerce,
  ClipCoerce = MNumericArray_Convert_Clip_Coerce,
  Round = MNumericArray_Convert_Round,
  ClipRound = MNumericArray_Convert_Clip_Round,
  Scale = MNumericArray_Convert_Scale,
  ClipScale = MNumericArray_Convert_Clip_Scale
}
 Possible methods of handling out-of-range data when converting a NumericArray to different type. More...
 

Functions

std::string typeToString (numericarray_data_t t)
 Get name of the given MNumericArray type, e.g. More...
 

Enumeration Type Documentation

◆ ConversionMethod

Possible methods of handling out-of-range data when converting a NumericArray to different type.

Function Documentation

◆ typeToString()

std::string LLU::NA::typeToString ( numericarray_data_t  t)
inline

Get name of the given MNumericArray type, e.g.

MNumericArray_Type_Bit16 has name "UnsignedInteger16"

Parameters
t- an MNumericArray type
Returns
a name (as used when creating NumericArrays in WL) of the specified MNumericArray type