Vector calculus
Coordinates are passed as a list of variable names; vector fields as a list of component expressions in the same order. Empty variable lists and component/variable count mismatches raise.
gradient#
Explicit context
fun gradient(
scalarField: UniffiExpression,
variables: List<kotlin.String>,
): List<UniffiExpression>: the partial derivatives in the order of variables.
divergence#
Explicit context
fun divergence(
vectorComponents: List<UniffiExpression>,
variables: List<kotlin.String>,
): UniffiExpression; component and variable counts must match.
curl#
Explicit context
fun curl(
vectorComponents: List<UniffiExpression>,
variables: List<kotlin.String>,
): List<UniffiExpression>. Requires exactly three components and three variables; other dimensions raise.
laplacian#
Explicit context
fun laplacian(
scalarField: UniffiExpression,
variables: List<kotlin.String>,
): UniffiExpression.
jacobian#
Explicit context
fun jacobian(
vectorComponents: List<UniffiExpression>,
variables: List<kotlin.String>,
): UniffiMatrixThe matrix with entry (rows index components, columns index
variables). Returned as a Matrix so the result composes with the matrix
methods.
hessian#
Explicit context
fun hessian(
scalarField: UniffiExpression,
variables: List<kotlin.String>,
): UniffiMatrixThe matrix of second partials, computed as the Jacobian of the gradient; structurally symmetric on smooth input.