4 ms·
Tracing np.add, all the way down
- tonnydourado 25d agoThat was some lovely spelunking XD
- deleted 25d ago[deleted]
- bobmarleybiceps 25d agoI sort of wish they used c++ for some of the template stuff, especially since the code base already seems to have some C++ iirc. I also contributed a tiny bit in the past, and their C template system was a surprise. (but this is cool and I love numpy anyway lol)
- aadyachinubhai 25d agoThe `.c.src` files with the @arch@ like dispatching logic is specific to numpy. Also, they are currently making efforst to shift to C++ templates using Google's Highway project. I worked on porting `np.negative` to it!
- brcmthrowaway 25d agoI don't understand, I thought numpy hooked into the fortran stuff :|
- bobmarleybiceps 24d agonumpy is pretty much all C and python. They may dispatch to some Fortran libraries, but I think basically all the internal implementations they have are C. IIRC, scipy does (did?) actually use a lot of fortran fwiw.