swarmauri.core.vector_stores.IDecompose module

class swarmauri.core.vector_stores.IDecompose.IDecompose[source]

Bases: ABC

Interface for decomposing a vector into components along specified basis vectors. This operation is essential in expressing a vector in different coordinate systems or reference frames.

abstract decompose(vector, basis_vectors)[source]

Decompose the given vector into components along the specified basis vectors.

Parameters: - vector (IVector): The vector to be decomposed. - basis_vectors (List[IVector]): A list of basis vectors along which to decompose the given vector.

Return type:

List[IVector]

Returns: - List[IVector]: A list of vectors, each representing the component of the decomposed vector along

the corresponding basis vector in the basis_vectors list.