[Cython] access to numpy functions?
Brian Blais <[email protected]>
| Newsgroups | gmane.comp.python.cython.devel,gmane.comp.python.pyrex |
|---|---|
| Message-ID | <[email protected]> |
Hello, I have been using Pyrex/Cython for a couple years now, interfacing with the numpy ndarray objects. I was wondering recently if there is direct access to some of the functions of numpy, like dot products, addition and subtraction, etc... without going through the python API? If I have two objects in Cython/Pyrex, like: c_numpy.ndarray x,y and I want to do a dot product, or add the two arrays, is there access to the numpy C-version of this? I know I could write my own for the dot product, but I'd rather not reinvent the wheel when possible. thanks, Brian Blais