swarmauri.core.vector_stores.IVectorArithmetic module

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

Bases: ABC

abstract add(vector1, vector2)[source]

Vector addition of ‘vector1’ and ‘vector2’.

Return type:

List[float]

abstract divide(vector, scalar)[source]

Scalar division of ‘vector’ by ‘scalar’.

Return type:

List[float]

abstract multiply(vector, scalar)[source]

Scalar multiplication of ‘vector’ by ‘scalar’.

Return type:

List[float]

abstract subtract(vector1, vector2)[source]

Vector subtraction of ‘vector1’ - ‘vector2’.

Return type:

List[float]