| 61 | } |
| 62 | |
| 63 | bool IsPyFloat(PyObject* obj) { |
| 64 | return PyFloat_Check(obj) || |
| 65 | PyIsInstance(obj, &PyFloatingArrType_Type); // NumPy float types |
| 66 | } |
| 67 | |
| 68 | // If the input is a zero dimensional PyArray return it converted to a scalar. |
| 69 | // Otherwise return the input and increment its reference count. |
no test coverage detected