Constructor
ArrowFixedShapeTensorDataTypenew
since: 21.0.0
Declaration [src]
GArrowFixedShapeTensorDataType*
garrow_fixed_shape_tensor_data_type_new (
GArrowDataType* value_type,
const gint64* shape,
gsize shape_length,
const gint64* permutation,
gsize permutation_length,
const gchar** dim_names,
gsize n_dim_names,
GError** error
)
Parameters
value_type-
Type:
GArrowDataTypeA
GArrowDataTypeof individual tensor elements.The data is owned by the caller of the function. shape-
Type: An array of
gint64A physical shape of the contained tensors as an array.
The length of the array is specified in the shape_lengthargument.The data is owned by the caller of the function. shape_length-
Type:
gsizeThe length of
shape. permutation-
Type: An array of
gint64An indices of the desired ordering of the original dimensions, defined as an array. This must be
NULLor the same length array ofshape.The argument can be NULL.The length of the array is specified in the permutation_lengthargument.The data is owned by the caller of the function. permutation_length-
Type:
gsizeThe length of
permutation. dim_names-
Type: An array of
gchar*Explicit names to tensor dimensions as an array. This must be
NULLor the same length array ofshape.n_dim_names. The length ofdim_names.The argument can be NULL.The length of the array is specified in the n_dim_namesargument.The data is owned by the caller of the function. Each element is a NUL terminated UTF-8 string. n_dim_names-
Type:
gsizeNo description available.
error-
Type:
GError **The return location for a recoverable error.
The argument can be NULL.If the return location is not NULL, then you must initialize it to aNULLGError*.The argument will left initialized to NULLby the constructor if there are no errors.In case of error, the argument will be set to a newly allocated GError; the caller will take ownership of the data, and be responsible for freeing it.
Return value
Type: GArrowFixedShapeTensorDataType
The newly created fixed shape tensor data type.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |