2 ms·
BLAS/LAPACK are written in fortran was the point I think. There are eigen and nalgebra certainly, but neither exports as cleanly to python, and neither is sign
by galangalalgol 3y ago
BLAS/LAPACK are written in fortran was the point I think. There are eigen and nalgebra certainly, but neither exports as cleanly to python, and neither is significantly (if at all) faster.
CuBLAS on the other hand makes a lot of sense to use from python if you have the right hardware.
- xmcqdpt2 3y agoThe reference implementation of BLAS that you should absolutely not use is written in Fortran. The actual implementations are written in C/C++/ASM. That's not to say you should use C yourself, memory management is a lot nicer in Fortran, for multidimensional arrays. You can stack allocate arrays inside functions and modern fortran has move semantics. Arrays are contiguous even if they have multiple index. It's generally a nice language for math, has good C API integration (both as caller and callee) and compiles down to small libraries without runtimes.
- galangalalgol 3y agoThanks! I did not most any of that. Except for that it is good at math.