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.

Question about the numerical precision

  • JElgy
  • New Member
  • New Member
More
1 year 10 months ago #4407 by JElgy
Hi All,

I have a quick question about what numerical precision NGSolve uses. For example, I'm converting between ngsolve base vectors and complex numpy arrays, i.e.

Theta_Return = np.zeros([fes2.ndof],dtype=complex)
Theta_Return[:] = Theta.vec.FV().NumPy()

Does the dtype complex match the precision of the base vector, or should I be using a long complex double?

Thanks for your help,
James
Time to create page: 0.107 seconds