13 ms·
Unfortunately it's pretty much the opposite: Fortran doesn't have standard library, just a small set of "intrinsic" functions that a compiler must implement. N
by rnhmjoj 3y ago
Unfortunately it's pretty much the opposite: Fortran doesn't have standard library, just a small set of "intrinsic" functions that a compiler must implement.
Nonetheless, Fortran has built-in support for N-dimensional arrays, with vectorised operations (including custom functions), so the experience is pretty similar to Numpy.
- medo-bear 3y agoExcept that Numpy makes calls to foreign functions which are written in C, Cpp, or Fortran. It is also not in Python's stdlib. From the numpy website: NumPy brings the computational power of languages like C and Fortran to Python, a language much easier to learn and use.
- AnimalMuppet 3y agoDepends on your definition of "standard library". There are libraries that may not be "standard" (that is, included in the standard) but are standardly available on Fortran. You need a matrix solver that will efficiently handle large, sparse matrices of complex variables, that will not degrade when faced with a stiff problem? Fortran has one of those. You can get it on pretty much any Fortran installation. It's solid, stable, and there's decades of experience with using it. So, from that perspective, Fortran has a huge library. For numeric algorithms, virtually anything you want, it has.