Initial LsPower implementation

This commit is contained in:
Silas Oettinghaus
2026-05-14 08:38:16 +02:00
commit d8ea52e974
3153 changed files with 799232 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
import numpy as np
from numpy._core.numeric import normalize_axis_index, normalize_axis_tuple
__all__ = ["byte_bounds", "normalize_axis_tuple", "normalize_axis_index"]
# NOTE: In practice `byte_bounds` can (potentially) take any object
# implementing the `__array_interface__` protocol. The caveat is
# that certain keys, marked as optional in the spec, must be present for
# `byte_bounds`. This concerns `"strides"` and `"data"`.
def byte_bounds(a: np.generic | np.ndarray) -> tuple[int, int]: ...