-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proposal: going to sparse matrix in tomography tools #380
Comments
I did consider whether it was worthwhile making these sparse matrices when first implementing those utilities (which were initially copied from demo functionality scripts where optimisation was very much not a consideration). In the end I went with standard array types because it was a) what had already been implemented, b) simpler to debug and c) the inversion routines these matrices were used with (e.g For the inversion grids of the JET and MAST-U inversions I was using these for the matrices weren't unreasonably large. I can see that if you want to do a high resolution ITER inversion for example then this may become an issue, but at that point O(N**3) inversion routines probably aren't suitable either so the requirement for non-sparse matrices is dropped. Do the classes in |
Thank you, @jacklovell for your answers. I agree with you, that finally for using inversion tools one needs a dense matrix. Some of the classes in So, summing the fact that one still needs dense matrices for the inversions and it that the initialization of the operators in |
Dear Cherab team.
The output matrices in, for example,
admt_utils.py
are usually very big and sparse and need lots of memory to store.How do you think, if it would be profitable for both memory usage and computation efficiency to go to sparse matrix notation using
scipy.sparse
?Thanks,
Ivan Kudashev
The text was updated successfully, but these errors were encountered: