[Numpy-discussion] [RFC] complex functions in npymath
David Cournapeau
david@ar.media.kyoto-u.ac...
Fri Oct 30 05:01:34 CDT 2009
Pauli Virtanen wrote:
> I'd like to write code like this:
>
> coshf(a) + sinhf(b)
>
> and not like this:
>
> npy_coshf(a) + npy_sinhf(b)
>
Using npy_ prefix was a consciously designed feature :) I would prefer
avoid doing this, as it may cause trouble: sometimes, even if the foo
function is available, we may want to use npy_foo because it is better,
faster, more standard compliant.
For example, I remember that the few complex functions on Visual Studio
are broken, so even though they are detected, I have a MSVC ifdef to use
our own in that case.
David
More information about the NumPy-Discussion
mailing list