Interface VectorField<V>
- All Superinterfaces:
Function<V, Vector<Real>>, Function<V, Vector<Real>>, Relation<V, Vector<Real>>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents a vector field: F: â„Ââ¿ → â„Ââ¿
A vector field assigns a vector to each point in space.
Examples in physics: - Velocity field: v(x,y,z) in fluid dynamics - Electric field: E(x,y,z) - Magnetic field: B(x,y,z) - Gravitational field: g(x,y,z) - Force field: F(x,y,z)
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Method Summary
Modifier and TypeMethodDescriptiondefault intReturns the dimension of the domain and codomain.Evaluates the vector field at a given point.static <V> VectorField<V> Creates a vector field from a lambda expression.static <V> VectorField<V> Creates a vector field with known dimension.Methods inherited from interface Function
andThen, apply, compose, contains, evaluate, getBackend, isContinuous, isDifferentiable, setBackendMethods inherited from interface Relation
getCodomain, getDomain
-
Method Details
-
evaluate
-
dimension
default int dimension()Returns the dimension of the domain and codomain.Default implementation returns -1 (unknown).
- Returns:
- the dimension, or -1 if unknown
-
of
Creates a vector field from a lambda expression.- Type Parameters:
V- the point type- Parameters:
evaluator- the evaluation function- Returns:
- the vector field
-
of
Creates a vector field with known dimension.- Type Parameters:
V- the point type- Parameters:
evaluator- the evaluation functiondimension- the dimension- Returns:
- the vector field
-