swarmauri.core.vector_stores.IOrthogonalProject module

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

Bases: ABC

Interface for calculating the orthogonal projection of one vector onto another.

abstract orthogonal_project(vector_a, vector_b)[source]

Calculates the orthogonal projection of vector_a onto vector_b.

Parameters:
  • vector_a (List[float]) – The vector to be projected.

  • vector_b (List[float]) – The vector onto which vector_a is orthogonally projected.

Returns:

The orthogonal projection of vector_a onto vector_b.

Return type:

List[float]