swarmauri.core.vector_stores.IDivergence module
- class swarmauri.core.vector_stores.IDivergence.IDivergence[source]
Bases:
ABC
Interface for calculating the divergence of a vector field.
- abstract calculate_divergence(vector_field, point)[source]
Calculate the divergence of a vector field at a specific point.
Parameters: - vector_field (List[List[float]]): A representation of the vector field as a list of vectors. - point (List[float]): The point at which the divergence is to be calculated.
Returns: - float: The divergence value at the specified point.
- Return type:
float