BUILT-IN WOLFRAM LANGUAGE SYMBOL

LibraryDataType

LibraryDataType[datatype]
specifies the data type for a LibraryFunction argument or result to be datatype.

LibraryDataType[datatype,etype]
specifies an element type etype for data structures.

LibraryDataType[datatype,etype,d]
specifies an array depth d for array data types.

DetailsDetails

  • Possible library data types include:
  • NullNull type (void)
    True | FalseBoolean values (mbool)
    StringUTF8 encoded strings (char *)
    Integermachine integers (mint)
    Realmachine reals (mreal)
    Complexmachine complex numbers (mcomplex)
    Listtensors of numerical values (MTensor)
    SparseArraysparse arrays of numerical values for LibraryLink (MSparseArray)
    Image2D images for LibraryLink (MImage)
    Image3D3D images for LibraryLink (MImage)
    Image|Image3D2D or 3D images for LibraryLink (MImage)
  • For an image datatype, LibraryDataType[datatype,itype] specifies an ImageType of itype; LibraryDataType[datatype] allows any image type.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Load an example LibraryFunction that accepts a sparse array argument:

In[10]:=
Click for copyable input

Use the function to get a property from a sparse array:

In[11]:=
Click for copyable input
In[12]:=
Click for copyable input
Out[12]=
Introduced in 2014
(10.0)