Expand description
Utilities for working with mass matrices in ODE systems
This module provides functions for handling mass matrices in ODEs of the form: M(t,y)·y’ = f(t,y), where M is a mass matrix that may depend on time t and state y.
Functions§
- apply_
mass - Apply mass matrix to a vector: result = M·v
- check_
mass_ compatibility - Check if a mass matrix is compatible with an ODE state
- is_
singular - Check if a matrix is singular or ill-conditioned
- solve_
mass_ system - Solve a linear system with mass matrix: M·x = b
- transform_
to_ standard_ form - Transform standard ODE to form with identity mass matrix