slimgroup / JUDI.jl

Julia Devito inversion.
https://slimgroup.github.io/JUDI.jl
MIT License
96 stars 30 forks source link

JudiJacobian #73

Closed seaninho94 closed 2 years ago

seaninho94 commented 2 years ago

Is it possible to visualize the Jacobian operator in its matrix form? I can only see the data, which is a JudiVector but i cannot see the Jacobian or Forward operator.

Thank you!

mloubout commented 2 years ago

These operator are matrix free, i.e. they only have an action F*q, J*dm, .... The matrix itself is never created as it would be way to big and unmanageable. Why do you want these as dense matrices?

seaninho94 commented 2 years ago

There is no way to see the numerical values of the Jacobian matrix? I know that usually is too big but i'm using a small model.

Thank you

mloubout commented 2 years ago

There are no numerical values in our operators. They are linear operators that have defined behavior for a matrix-vector product they do not hold any value. There is no mechanism to transform our operators into a dense matrix neither for two reasons:

But our operators are fully defined for LSQR or such so access to the values shouldn't be necessary,

ziyiyin97 commented 2 years ago

If you @seaninho94 insist to look at the numerical values, you can do

J_{ij}=e_i^T J e_j

seaninho94 commented 2 years ago

Thank you very much!