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.

Access BaseMatrix information obtained from static condensation

More
3 years 7 months ago #3201 by nickyang2020
Hi,

I have a simple question regarding ngsolve.la.BaseMatrix.

I am following the tutorial 1.4 Static Condensation and I'd like to use the following matrices in Scipy
Code:
a.harmonic_extension a.harmonic_extension_trans a.inner_solve a.mat.Inverse(freedofs=fes.FreeDofs(coupling=True))
but I am not sure how to access the matrix information.
.
I know for a BilinearForm, we can use
Code:
a.mat.COO()
to access the sparse matrix information as shown in Interfacing to numpy/scipy . But the matrices I mentioned above do not have a COO method. Would you please tell me what I should do? Thank you.

Nick
Time to create page: 0.104 seconds