Skip to main content

Module tensor_c

Module tensor_c 

Source
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.