Ticket #1789: Support half floats via buffer interface #68

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
Contributor

elistevens commented Apr 2, 2011

Changes (and tests) to allow exporting half-floats through the buffer interface.

Code:
Added NPY_HALF to switch (descr->type_num) in _buffer_format_string.
Added 'e' keys to the _pep3118_native_map and _pep3118_standard_map.

Tests:
Added entries to the generic round-trip tests.
Added specialized half-float test that round-trips example values from the wikipedia page.

http://en.wikipedia.org/wiki/Half_precision_floating-point_format
http://mail.scipy.org/pipermail/numpy-discussion/2011-March/055795.html
http://projects.scipy.org/numpy/ticket/1789

Changes (and tests) to allow exporting half-floats through the buffer…
… interface.

Code:
Added NPY_HALF to switch (descr->type_num) in _buffer_format_string.
Added 'e' keys to the _pep3118_native_map and _pep3118_standard_map.

Tests:
Added entries to the generic round-trip tests.
Added specialized half-float test that round-trips example values from the wikipedia page.

http://en.wikipedia.org/wiki/Half_precision_floating-point_format
http://mail.scipy.org/pipermail/numpy-discussion/2011-March/055795.html

@mwiebe mwiebe closed this Apr 2, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment