3 ms·
It depends on how much conversion is needed to feed it into the FFI. Duck typing in python means there are a lot of implicit conversions that will take place.
by ok123456 3y ago
It depends on how much conversion is needed to feed it into the FFI. Duck typing in python means there are a lot of implicit conversions that will take place.
- bee_rider 3y agoTrue. But if the code is reasonably well written, and you are just doing Numpy operations on Numpy vectors and matrices, it should basically be equivalent to doing those operations in Fortran (because most of the actual compute should be performed by code written in Fortran and C). They asked if Fortran was faster than Numpy, not if it was faster than Python.