while implementing a stiff matrix ODE in Julia, I notice that the inverse Mass matrix required for the state-space representation (2nd order ODE), leads to a very dense Jacobian matrix:
for dx.=[-invM*C -invM*K; eye(Float64, 406, 406) zeros(Float64, 406, 406)]*x
If instead we remove the inv(Ms) expression, the "Jacobian" of the right-hand side of the ODE is very sparse, which is no suprise:
for "Mass"*dx.=[-C -K; eye(Float64, 406, 406) zeros(Float64, 406, 406)]*x
Is it possible to improve performance by providing the mass on the left-hand side of the equation, in the form:
[Ms zeros(Float64, 406, 406); zeros(Float64, 406,406) eye(Float, 406,406)]
I guess this option is available in DifferentialEquations.jl ?
Thank you
