httk.core.vectors.vector_backend

The abstract base class for all vector backends.

Classes

VectorBackend

Abstract base class for all backends of vector (tensor) data.

Module Contents

class httk.core.vectors.vector_backend.VectorBackend(backend, **hints)[source]

Bases: httk.core.views.Backend[VectorBackend], httk.core.vectors.vector_api.VectorAPI

Abstract base class for all backends of vector (tensor) data.

Concrete backends carry a native representation (an exact FracVector, plain nested sequences, or a numpy array) and produce the canonical exactness-preserving fractions interchange declared by VectorAPI from it.

Concrete subclasses select the accepted input and optional dispatch hints in their _backend_adopt hooks.

backend_classes: ClassVar[list[type[httk.core.views.Backend[Any]]]]