[Numpy-discussion] Mathematical functions in Numpy
mshubhankar at yahoo.co.in
Fri Mar 27 03:22:06 EDT 2015
Hello all,I have submitted the proposal. It would be very nice if you would please give it a read and provide me with your feebacks.
I think i can make a file with different functions from different libraries such as intels vml , amd acml with the existing sleef and yeppp libraries.I understand that these functions may become outdated after sometime and some other faster function may come up.
Then the only way out is to update the file after certain periods. Please advice me with other methods if there are any.And please also tell me, how an interface working between the libraries and Numpy will be better than an internal file containg the souce codes.
Thanks a lot for giving your time.
| | | | | | | |
| mshubhankar/gsoc2015Contribute to gsoc2015 development by creating an account on GitHub. |
| View on github.com | Preview by Yahoo |
On Wednesday, 18 March 2015 1:31 AM, Julian Taylor <jtaylor.debian at googlemail.com> wrote:
currently the math functions are wrapped via the generic PyUfunc_*
functions in numpy/core/src/umath/loops.c.src which just apply some
arbitrary function to a scalar from arbitrarily strided inputs.
When adding variants one likely needs to add some special purpose loops
to deal with the various special requirements of the vector math api's.
This involves adding some special cases to the ufunc generation in
numpy/core/code_generators/generate_umath.py and then implementing the
new kernel functions.
See e.g. this oldish PR, which changes the sqrt function from a
PyUfunc_d_d function to a special loop to take advantage of the
vectorized machine instructions:
some things have changed a bit since then but it does show many of the
files you probably need to look for this project.
On 17.03.2015 19:51, Robert Kern wrote:
> On Tue, Mar 17, 2015 at 6:29 PM, Matthieu Brucher
> <matthieu.brucher at gmail.com <mailto:matthieu.brucher at gmail.com>> wrote:
>> These functions are defined in the C standard library!
> I think he's asking how to define numpy ufuncs.
>> 2015-03-17 18:00 GMT+00:00 Shubhankar Mohapatra
> <mshubhankar at yahoo.co.in <mailto:mshubhankar at yahoo.co.in>>:
>> > Hello all,
>> > I am a undergraduate and i am trying to do a project this time on
> numppy in
>> > gsoc. This project is about integrating vector math library classes
> of sleef
>> > and yeppp into numpy to make the mathematical functions faster. I have
>> > already studied the new library classes but i am unable to find the
> sin ,
>> > cos function definitions in the numpy souce code.Can someone please
> help me
>> > find the functions in the source code so that i can implement the new
>> > library class into numpy.
>> > Thanking you,
>> > Shubhankar Mohapatra
>> > _______________________________________________
>> > NumPy-Discussion mailing list
>> > NumPy-Discussion at scipy.org <mailto:NumPy-Discussion at scipy.org>
>> > http://mail.scipy.org/mailman/listinfo/numpy-discussion
>> Information System Engineer, Ph.D.
>> Blog: http://matt.eifelle.com
>> LinkedIn: http://www.linkedin.com/in/matthieubrucher
>> Music band: http://liliejay.com/
>> NumPy-Discussion mailing list
>> NumPy-Discussion at scipy.org <mailto:NumPy-Discussion at scipy.org>
> Robert Kern
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
NumPy-Discussion mailing list
NumPy-Discussion at scipy.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion