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
)

Description

No description available.

Available since: 21.0.0

Parameters

value_type

Type: GArrowDataType

A GArrowDataType of individual tensor elements.

The data is owned by the caller of the function.
shape

Type: An array of gint64

A physical shape of the contained tensors as an array.

The length of the array is specified in the shape_length argument.
The data is owned by the caller of the function.
shape_length

Type: gsize

The length of shape.

permutation

Type: An array of gint64

An indices of the desired ordering of the original dimensions, defined as an array. This must be NULL or the same length array of shape.

The argument can be NULL.
The length of the array is specified in the permutation_length argument.
The data is owned by the caller of the function.
permutation_length

Type: gsize

The length of permutation.

dim_names

Type: An array of gchar*

Explicit names to tensor dimensions as an array. This must be NULL or the same length array of shape. n_dim_names. The length of dim_names.

The argument can be NULL.
The length of the array is specified in the n_dim_names argument.
The data is owned by the caller of the function.
Each element is a NUL terminated UTF-8 string.
n_dim_names

Type: gsize

No 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 a NULL GError*.
The argument will left initialized to NULL by 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.