Source code for swarmauri.core.vector_stores.IVectorBasisCheck

from abc import ABC, abstractmethod
from typing import List, Any

[docs] class IVectorBasisCheck(ABC): """ Interface for checking if a given set of vectors forms a basis of the vector space. """
[docs] @abstractmethod def is_basis(self, vectors: List[Any]) -> bool: """ Determines whether the given set of vectors forms a basis for their vector space. Parameters: - vectors (List[Any]): A list of vectors to be checked. Returns: - bool: True if the vectors form a basis, False otherwise. """ pass