Base#

class ivy.data_classes.nested_array.base.NestedArrayBase(data, nested_rank, inner_shape, dtype, device, internal=False)[source]#

Bases: ABC

Base class for nested array objects.

__init__(data, nested_rank, inner_shape, dtype, device, internal=False)[source]#
_abc_impl = <_abc._abc_data object>#
static broadcast_shapes(shapes)[source]#
property data: NativeArray#

The native array being wrapped in self.

property device: Device#

Hardware device the array data resides on.

property dtype: Dtype#

Data type of the array elements.

property inner_shape: Tuple[int]#

Inner Shape.

property ndim: int#

Number of array dimensions (axes).

classmethod nested_array(data, nested_rank=None, inner_shape=None, dtype=None, device=None)[source]#
property nested_rank: int#

Nested Rank.

ragged_map(fn)[source]#
static ragged_multi_map(fn, ragged_arrays)[source]#
static ragged_multi_map_in_function(fn, *args, **kwargs)[source]#
static replace_ivy_arrays(ragged_array, arrays)[source]#
property shape: List#

Array dimensions.

unbind()[source]#

This should have hopefully given you an overview of the base submodule, if you have any questions, please feel free to reach out on our discord!