swarmauri.core.vector_stores.IVectorLinearCombination module

class swarmauri.core.vector_stores.IVectorLinearCombination.ILinearCombination[source]

Bases: ABC

Interface for creating a vector as a linear combination of a set of vectors.

abstract linear_combination(coefficients, vectors)[source]

Computes the linear combination of the given vectors with the specified coefficients.

Parameters: - coefficients (List[float]): A list of coefficients for the linear combination. - vectors (List[Any]): A list of vectors to be combined.

Returns: - Any: The resulting vector from the linear combination.

Return type:

Any