Top |
GArrowBuffer * | buffer | Read / Write / Construct Only |
gpointer | tensor | Write / Construct Only |
GArrowTensor * garrow_tensor_new (GArrowDataType *data_type
,GArrowBuffer *data
,gint64 *shape
,gsize n_dimensions
,gint64 *strides
,gsize n_strides
,gchar **dimension_names
,gsize n_dimension_names
);
data_type |
A GArrowDataType that indicates each element type in the tensor. |
|
data |
A GArrowBuffer that contains tensor data. |
|
shape |
A list of dimension sizes. |
[array length=n_dimensions] |
n_dimensions |
The number of dimensions. |
|
strides |
A list of the number of bytes in each dimension. |
[array length=n_strides][nullable] |
n_strides |
The number of strides. |
|
dimension_names |
A list of dimension names. |
[array length=n_dimension_names][nullable] |
n_dimension_names |
A list of dimension names |
Since: 0.3.0
gboolean garrow_tensor_equal (GArrowTensor *tensor
,GArrowTensor *other_tensor
);
Since: 0.4.0
GArrowDataType *
garrow_tensor_get_value_data_type (GArrowTensor *tensor
);
Since: 0.3.0
GArrowType
garrow_tensor_get_value_type (GArrowTensor *tensor
);
Since: 0.3.0
GArrowBuffer *
garrow_tensor_get_buffer (GArrowTensor *tensor
);
Since: 0.3.0
gint64 * garrow_tensor_get_shape (GArrowTensor *tensor
,gint *n_dimensions
);
The shape of the tensor.
It should be freed with g_free()
when no longer needed.
[array length=n_dimensions][transfer full]
Since: 0.3.0
gint64 * garrow_tensor_get_strides (GArrowTensor *tensor
,gint *n_strides
);
The strides of the tensor.
It should be freed with g_free()
when no longer needed.
[array length=n_strides][transfer full]
Since: 0.3.0
gint
garrow_tensor_get_n_dimensions (GArrowTensor *tensor
);
Since: 0.3.0
const gchar * garrow_tensor_get_dimension_name (GArrowTensor *tensor
,gint i
);
Since: 0.3.0
gboolean
garrow_tensor_is_contiguous (GArrowTensor *tensor
);
Since: 0.3.0
gboolean
garrow_tensor_is_row_major (GArrowTensor *tensor
);
Since: 0.3.0
gboolean
garrow_tensor_is_column_major (GArrowTensor *tensor
);
Since: 0.3.0
“buffer”
property“buffer” GArrowBuffer *
The data.
Owner: GArrowTensor
Flags: Read / Write / Construct Only
“tensor”
property“tensor” gpointer
The raw std::shared<arrow::Tensor> *.
Owner: GArrowTensor
Flags: Write / Construct Only