News for hackers. Stuff that matters.
Re:Is Fortran better than Python for teaching basics of nume... by TimorousBestie on Wednesday September 24, 2025 @04:07AM (#45357601)
Numerical linear algebra is intrinsically strongly typed. The same algorithms that work in double or extended double precision may not work at single or half precision.

Pure python has a tendency to silently widen every floating point type to double. Numpy overlays a C ABI on top of python’s oversimplified type system, which complicates matters further.

I wouldn’t teach numerical linear algebra in any weakly typed language.

There are no comments on this comment yet.