Output in binary form

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,

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

Attachment: tonumpy.py