Nested array

class ivy.nested_array.nested_array.NestedArray(data, dtype, device, internal=False)[source]

Bases: ABC

Base class for nested array objects.

__init__(data, dtype, device, internal=False)[source]
property data: NativeArray

The native array being wrapped in self.

Return type

NativeArray

property device: Device

Hardware device the array data resides on.

Return type

Device

property dtype: Dtype

Data type of the array elements

Return type

Dtype

classmethod from_row_lengths(values, row_lengths)[source]
classmethod from_row_split(values, row_split)[source]
property ndim: int

Number of array dimensions (axes).

Return type

int

classmethod nested_array(data, dtype=None, device=None)[source]
reshape(shape)[source]
property shape: List

Array dimensions.

Return type

List

unbind()[source]