Forum Message

 

 

We have moved the forum to https://forum.ngsolve.org . This is an archived version of the topics until 05/05/23. All the topics were moved to the new forum and conversations can be continued there. This forum is just kept as legacy to not invalidate old links. If you want to continue a conversation just look for the topic in the new forum.

Notice

The forum is in read only mode.

Output in binary form

More
3 years 9 months ago #2952 by gekats
Output in binary form was created by gekats
Dear all,

I would to ask if there is a way to access the entries of a.mat or gfu.vec in binary form, preferably without any conversion to standard decimal float form.

Is there any way to do this?

I would greatly appreciate any help.

Best regards,
George
More
3 years 9 months ago #2975 by joachim
Replied by joachim on topic Output in binary form
Hi George,

you can get a numpy - view from NGSolve vectors and matrices.
you can query the three arrays from the CSR sparse matrix format.

an example is attached.

best, Joachim
Attachments:
Time to create page: 0.142 seconds