Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: