salvus.material.utils.compute_symbolic_jacobian
salvus.material.utils.compute_symbolic_jacobian salvus material utils compute_symbolic_jacobian Compute the symbolic jacobian of a material transformation.
Functions
compute_symbolic_jacobian()
compute_symbolic_jacobian()def compute_symbolic_jacobian(
m0: MaterialType, m1: MaterialType
) -> tuple[sp.Matrix, list[str], list[str]]: ...Compute the symbolic Jacobian of a model with respect to its parameters.
J is ordered as follows:
| ∂m1_0/∂m0_0 ∂m1_0/∂m0_1 ... ∂m1_0/∂m0_n |
J = | ∂m1_1/∂m0_0 ∂m1_1/∂m0_1 … ∂m1_1/∂m0_n | | … … … … | | ∂m1_m/∂m0_0 ∂m1_m/∂m0_1 … ∂m1_m/∂m0_n |
with the indexing or each parameter following alphabetical order.
Parameters
m0MaterialType — The first material.m1MaterialType — The second material.
Returns tuple[sp.Matrix, list[str], list[str]] — The symbolic Jacobian matrix, the parameter names of m0, and the parameter names of m1.