Skip to content

Commit

Permalink
add IntVector and IntVectorLike
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoMVale committed Feb 25, 2024
1 parent d6fc753 commit 69228f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/polykin/utils/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
IntOrArray = Union[int, IntArray]
IntOrArrayLike = Union[int, IntArrayLike]

IntVector = NDArray[Shape['*'], Int32]
IntVectorLike = Union[list[int], tuple[int, ...], IntVector]

FloatArray = NDArray[Any, Float64]
FloatArrayLike = Union[list[float], tuple[float, ...], FloatArray]
FloatOrArray = Union[float, FloatArray]
Expand Down

0 comments on commit 69228f9

Please sign in to comment.