Sinc seems to always return double precision, even when the input is single precision:
In [125]: np.sinc(np.float32(0)).dtype
Out[125]: dtype('float64')
Is this desired behavior? I’m guessing the promotion occurs in the
multiplication by pi:
y = pi * where(x == 0, 1.0e-20, x)
Paul
_________
Paul Woodford, Ph.D.
Principal Research Engineer
KeyW Corporation
7763 Old Telegraph Road | Severn, MD 21144
Direct: 443.274.1466 | Main: 443.733.1500
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ NumPy-Discussion mailing list [email protected] https://mail.python.org/mailman/listinfo/numpy-discussion
