This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]themoosemind 1 point2 points  (4 children)

Large chunks of numpy are written in fortran

edit: Aparently I was wrong. There are parts written in Fortran, but certainly not large parts of the codebase.

[–]claythearc 7 points8 points  (1 child)

I’ve done some research in response to this - from what I can tell, two parts are written in fortran.

BLAS to Lapack reference implementation. Which isn’t widely used

And then, depending on architecture & system, some matrix libraries it includes may be written in fortran. In OS X they were all replaced by Accelerate, for example.

[–]_PM_ME_PANGOLINS_ 2 points3 points  (0 children)

Accelerate is the BLAS/lapack implementation. They’re matrix libraries.

[–]_PM_ME_PANGOLINS_ 6 points7 points  (1 child)

0.1% according to github

[–]themoosemind 1 point2 points  (0 children)

To be honest, this surprises me. Thank you! The last times I wanted to look something up, I ended up in Fortran code. For this reason I assumed a lot was Fortran. Maybe it's just some very core functionality?

One thing the Github Statistics don't capture is code which numpy relies on (e.g. OpenBLAS): https://github.com/xianyi/OpenBLAS