src.storage package¶
Submodules¶
src.storage.storage module¶
- class src.storage.storage.Storage(stg_like, /, *, dtype=None, copy=False)¶
Bases:
Generic
[Data
]- Parameters:
stg_like (Any)
dtype (Optional[type])
copy (bool)
- abs(*args, **kwargs)¶
- add_at(*args, **kwargs)¶
- add_between(*args, **kwargs)¶
- static arange(*, start, stop, step=None, dtype=None)¶
- Parameters:
start (int)
stop (int)
step (int | None)
dtype (type | None)
- Return type:
Storage[Data]
- static as_index(index_like, /, *, copy=False, assert_flat=True)¶
- Parameters:
index_like (Any)
copy (bool)
assert_flat (bool)
- Return type:
Storage[Data]
- static as_mask(mask_like, /, *, copy=False, assert_flat=False)¶
- Parameters:
mask_like (Any)
copy (bool)
assert_flat (bool)
- Return type:
Storage[Data]
- static as_storage(stg_like, /, *, dtype=None, copy=False)¶
- Parameters:
stg_like (Any)
dtype (type | None)
copy (bool)
- Return type:
Storage[Data]
- as_type(*args, **kwargs)¶
- static as_values(values_like, /, *, dtype=None, copy=False, assert_flat=False)¶
- Parameters:
values_like (Any)
dtype (type | None)
copy (bool)
assert_flat (bool)
- Return type:
Storage[Data]
- bin_count(*args, **kwargs)¶
- broadcast_to(*args, **kwargs)¶
- compress(*, keep, axis=0)¶
- Parameters:
keep (Any | Sequence[Any])
axis (int | Sequence[int] | None)
- Return type:
Storage[Data]
- compress_axis(*args, **kwargs)¶
- static concat(stgs, /, *, axis=0)¶
- copy(*args, **kwargs)¶
- cos(*args, **kwargs)¶
- count_nonzero(*args, **kwargs)¶
- cumsum(*args, **kwargs)¶
- property data: Data¶
- diagonal(*args, **kwargs)¶
- diff(*args, **kwargs)¶
- distance(*args, **kwargs)¶
- distance_lazy(*args, **kwargs)¶
- property dtype: type¶
- exp(*args, **kwargs)¶
- expand_dims(*args, **kwargs)¶
- fill_diagonal(*args, **kwargs)¶
- flat_nonzero(*args, **kwargs)¶
- static full(fill_value, /, *, shape, dtype=None)¶
- Parameters:
fill_value (Any)
shape (int | Sequence[int])
dtype (type | None)
- Return type:
Storage[Data]
- iabs(*args, **kwargs)¶
- icos(*args, **kwargs)¶
- iexp(*args, **kwargs)¶
- ilog(*args, **kwargs)¶
- isin(*args, **kwargs)¶
- isqrt(*args, **kwargs)¶
- log(*args, **kwargs)¶
- max(*args, **kwargs)¶
- mean(*args, **kwargs)¶
- min(*args, **kwargs)¶
- property ndim: int¶
- static ones(*, shape, dtype=None)¶
- Parameters:
shape (int | Sequence[int])
dtype (type | None)
- Return type:
Storage[Data]
- repeat(*args, **kwargs)¶
- reshape(*args, **kwargs)¶
- segment_max(*args, **kwargs)¶
- segment_mean(*args, **kwargs)¶
- segment_min(*args, **kwargs)¶
- segment_sum(*args, **kwargs)¶
- property shape: tuple[int, ...]¶
- sin(*args, **kwargs)¶
- property size: int¶
- sqrt(*args, **kwargs)¶
- squeeze(*args, **kwargs)¶
- static stack(stgs, /, *, axis=0)¶
- sum(*args, **kwargs)¶
Module contents¶
- src.storage.BACKEND¶
alias of
NumpyBackend
- class src.storage.Storage(stg_like, /, *, dtype=None, copy=False)¶
Bases:
Generic
[Data
]- Parameters:
stg_like (Any)
dtype (Optional[type])
copy (bool)
- abs(*args, **kwargs)¶
- add_at(*args, **kwargs)¶
- add_between(*args, **kwargs)¶
- static arange(*, start, stop, step=None, dtype=None)¶
- Parameters:
start (int)
stop (int)
step (int | None)
dtype (type | None)
- Return type:
Storage[Data]
- static as_index(index_like, /, *, copy=False, assert_flat=True)¶
- Parameters:
index_like (Any)
copy (bool)
assert_flat (bool)
- Return type:
Storage[Data]
- static as_mask(mask_like, /, *, copy=False, assert_flat=False)¶
- Parameters:
mask_like (Any)
copy (bool)
assert_flat (bool)
- Return type:
Storage[Data]
- static as_storage(stg_like, /, *, dtype=None, copy=False)¶
- Parameters:
stg_like (Any)
dtype (type | None)
copy (bool)
- Return type:
Storage[Data]
- as_type(*args, **kwargs)¶
- static as_values(values_like, /, *, dtype=None, copy=False, assert_flat=False)¶
- Parameters:
values_like (Any)
dtype (type | None)
copy (bool)
assert_flat (bool)
- Return type:
Storage[Data]
- bin_count(*args, **kwargs)¶
- broadcast_to(*args, **kwargs)¶
- compress(*, keep, axis=0)¶
- Parameters:
keep (Any | Sequence[Any])
axis (int | Sequence[int] | None)
- Return type:
Storage[Data]
- compress_axis(*args, **kwargs)¶
- static concat(stgs, /, *, axis=0)¶
- copy(*args, **kwargs)¶
- cos(*args, **kwargs)¶
- count_nonzero(*args, **kwargs)¶
- cumsum(*args, **kwargs)¶
- property data: Data¶
- diagonal(*args, **kwargs)¶
- diff(*args, **kwargs)¶
- distance(*args, **kwargs)¶
- distance_lazy(*args, **kwargs)¶
- property dtype: type¶
- exp(*args, **kwargs)¶
- expand_dims(*args, **kwargs)¶
- fill_diagonal(*args, **kwargs)¶
- flat_nonzero(*args, **kwargs)¶
- static full(fill_value, /, *, shape, dtype=None)¶
- Parameters:
fill_value (Any)
shape (int | Sequence[int])
dtype (type | None)
- Return type:
Storage[Data]
- iabs(*args, **kwargs)¶
- icos(*args, **kwargs)¶
- iexp(*args, **kwargs)¶
- ilog(*args, **kwargs)¶
- isin(*args, **kwargs)¶
- isqrt(*args, **kwargs)¶
- log(*args, **kwargs)¶
- max(*args, **kwargs)¶
- mean(*args, **kwargs)¶
- min(*args, **kwargs)¶
- property ndim: int¶
- static ones(*, shape, dtype=None)¶
- Parameters:
shape (int | Sequence[int])
dtype (type | None)
- Return type:
Storage[Data]
- repeat(*args, **kwargs)¶
- reshape(*args, **kwargs)¶
- segment_max(*args, **kwargs)¶
- segment_mean(*args, **kwargs)¶
- segment_min(*args, **kwargs)¶
- segment_sum(*args, **kwargs)¶
- property shape: tuple[int, ...]¶
- sin(*args, **kwargs)¶
- property size: int¶
- sqrt(*args, **kwargs)¶
- squeeze(*args, **kwargs)¶
- static stack(stgs, /, *, axis=0)¶
- sum(*args, **kwargs)¶