* garrow_tensor_get_n_dimensions: * @tensor: A #GArrowTensor. * * Returns: The number of dimensions of the tensor. * * Since: 0.3.0 */
| 334 | * Since: 0.3.0 |
| 335 | */ |
| 336 | gint |
| 337 | garrow_tensor_get_n_dimensions(GArrowTensor *tensor) |
| 338 | { |
| 339 | auto arrow_tensor = garrow_tensor_get_raw(tensor); |
| 340 | return arrow_tensor->ndim(); |
| 341 | } |
| 342 | |
| 343 | /** |
| 344 | * garrow_tensor_get_dimension_name: |
nothing calls this directly
no test coverage detected