"example/example-numpy-dtypes.py" did not exist on "8fa09cb871d2241355bb2a794dc75db502b20997"
Fixed py:array constructor from failing for complex types
The array(const buffer_info &info) constructor fails when given
complex types since their format string is 'Zd' or 'Zf' which has
a length of two and causes an error here:
if (info.format.size() != 1)
throw std::runtime_error("Unsupported buffer format!");
Fixed by allowing format sizes of one and two.
Showing
Please register or sign in to comment