Array¶
- class kgpy.labeled.Array(array=<Quantity 0.>, axes=None)¶
Bases:
AbstractArray[ArrT]- __init__(array=<Quantity 0.>, axes=None)¶
Attributes
Methods
__init__([array, axes])add_axes(axes)- rtype
typing.TypeVar(AbstractArrayT, bound= AbstractArray)
broadcast_shapes(*arrs)- rtype
combine_axes(axes[, axis_new])- rtype
copy()- rtype
typing.TypeVar(CopyableT, bound= Copyable)
- rtype
typing.TypeVar(CopyableT, bound= Copyable)
empty(shape[, dtype])- rtype
typing.TypeVar(ArrayT, bound= Array)
matrix_determinant(axis_rows, axis_columns)- rtype
matrix_inverse(axis_rows, axis_columns)- rtype
matrix_multiply(other, axis_rows, axis_columns)- rtype
max([axis, where])- rtype
typing.TypeVar(NDArrayMethodsMixinT, bound= NDArrayMethodsMixin)
mean([axis, where])- rtype
typing.TypeVar(NDArrayMethodsMixinT, bound= NDArrayMethodsMixin)
min([axis, where])- rtype
typing.TypeVar(NDArrayMethodsMixinT, bound= NDArrayMethodsMixin)
ndindex(shape)- rtype
ones(shape[, dtype])- rtype
typing.TypeVar(ArrayT, bound= Array)
shape_broadcasted(*arrs)- rtype
zeros(shape[, dtype])- rtype
typing.TypeVar(ArrayT, bound= Array)
Inheritance Diagram
- add_axes(axes)¶
- Return type
typing.TypeVar(AbstractArrayT, bound= AbstractArray)- Parameters
self (AbstractArrayT) –
axes (List) –
- classmethod broadcast_shapes(*arrs)¶
- Return type
- Parameters
arrs (AbstractArrayT) –
- combine_axes(axes, axis_new=None)¶
- Return type
- Parameters
- copy()¶
- Return type
typing.TypeVar(CopyableT, bound= Copyable)- Parameters
self (CopyableT) –
- copy_shallow()¶
- Return type
typing.TypeVar(CopyableT, bound= Copyable)- Parameters
self (CopyableT) –
- classmethod empty(shape, dtype=<class 'float'>)¶
- matrix_determinant(axis_rows, axis_columns)¶
- Return type
- Parameters
- matrix_inverse(axis_rows, axis_columns)¶
- Return type
- Parameters
- matrix_multiply(other, axis_rows, axis_columns)¶
- Return type
- Parameters
- max(axis=None, where=<no value>)¶
- mean(axis=None, where=<no value>)¶
- min(axis=None, where=<no value>)¶
- classmethod ndindex(shape)¶
- Return type
- Parameters
- classmethod ones(shape, dtype=<class 'float'>)¶
- shape_broadcasted(*arrs)¶
- Return type
- Parameters
self (AbstractArrayT) –
arrs (AbstractArrayT) –
- classmethod zeros(shape, dtype=<class 'float'>)¶
-
array:
typing.TypeVar(ArrT, bound=typing.Union[typing.Sequence[typing.Sequence[typing.Sequence[typing.Sequence[typing.Sequence[typing.Any]]]]],numpy.typing._array_like._SupportsArray[numpy.dtype],typing.Sequence[numpy.typing._array_like._SupportsArray[numpy.dtype]],typing.Sequence[typing.Sequence[numpy.typing._array_like._SupportsArray[numpy.dtype]]],typing.Sequence[typing.Sequence[typing.Sequence[numpy.typing._array_like._SupportsArray[numpy.dtype]]]],typing.Sequence[typing.Sequence[typing.Sequence[typing.Sequence[numpy.typing._array_like._SupportsArray[numpy.dtype]]]]],bool,int,float,complex,str,bytes,typing.Sequence[typing.Union[bool,int,float,complex,str,bytes]],typing.Sequence[typing.Sequence[typing.Union[bool,int,float,complex,str,bytes]]],typing.Sequence[typing.Sequence[typing.Sequence[typing.Union[bool,int,float,complex,str,bytes]]]],typing.Sequence[typing.Sequence[typing.Sequence[typing.Sequence[typing.Union[bool,int,float,complex,str,bytes]]]]],astropy.units.Quantity]) = <Quantity 0.>¶
-
axes:
typing.Optional[typing.List[str]] = None¶
-
type_array:
typing.ClassVar[typing.Tuple[typing.Type,...]] = (<class 'bool'>, <class 'int'>, <class 'float'>, <class 'complex'>, <class 'numpy.generic'>, <class 'numpy.ndarray'>)¶
-
type_array_auxiliary:
typing.ClassVar[typing.Tuple[typing.Type,...]] = (<class 'bool'>, <class 'int'>, <class 'float'>, <class 'complex'>, <class 'numpy.generic'>)¶