Skip to content

Typing module

Aliases

from typing import Any

from numpy.typing import NDArray

type Array = NDArray[Any]

type Vector = NDArray[Any]
type Matrix = NDArray[Any]
type SquareMatrix = NDArray[Any]

Predicates

pqlattice.typing.is_Vector

is_Vector(obj: Any) -> TypeGuard[Vector]

pqlattice.typing.is_Matrix

is_Matrix(obj: Any) -> TypeGuard[Matrix]

pqlattice.typing.is_SquareMatrix

is_SquareMatrix(obj: Any) -> TypeGuard[SquareMatrix]