Registered Member
|
Hi Gael,
today I tried to remove elements which are close to zero from a DynamicSparseMatrix object. I can set the appropriate elements to exact zero, but they are not removed from the containers. (the number returned by numZeros stays the same) This technique is used to save computing time during operations and a lot of memory due to round-offs. Is there anything that I have overseen? Thanks
Last edited by ggael on Tue Feb 03, 2009 9:10 am, edited 1 time in total.
|
Moderator
|
this is on the TODO list... this will be available for both sparse matrix types. |
Registered Member
|
I see. Thanks for pointing this out. - and please give you some time - it does not urge this time
|
Moderator
|
mat.prune(reference_value, epsilon); will remove all coeff such that: coeff () |
Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell