Expand description
C FFI functions for inspecting and freeing Tensor objects.
Provides extern "C" functions for querying Tensor metadata (dimensions, strides,
data type, raw pointer) and for freeing a Tensor previously returned by this library. The C
header uses the same name, Tensor.
Functions§
- diffsol_
tensor_ ⚠dim - Return the size of a single dimension in a array.
- diffsol_
tensor_ ⚠dtype - Return the scalar type enum stored by a array.
- diffsol_
tensor_ ⚠free - Free a array previously returned by this library.
- diffsol_
tensor_ ⚠ndim - Return the number of dimensions in a array.
- diffsol_
tensor_ ⚠ptr - Return the raw data pointer stored by a array.
- diffsol_
tensor_ ⚠stride - Return the stride, in bytes, for a single dimension in a array.