Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PyArray conversion speedups and PyArrayFromBuffer (#487)
* PyArray conversion speedups and PyArrayFromBuffer * PyArray_Info parameterised T,N and immutable * PyArray_Info size and stride changed to Tuples (from Vectors) * PyArray_Info data changed from Ptr{Cvoid} to Ptr{T} * `PyArrayInfoFromBuffer(o::PyObject)` faster way to get PyArray_Info from numpy than numpy's __array_interface__ * `PyArrayFromBuffer(o::PyObject)` 4x faster PyArray conversion * ArrayFromBuffer no copy conversion to Julia Array * moved PyBuffer tests to separate file * Add isbuftype and use in pysequence_query * Increase robustness in parsing buffer format string * ArrayFromBuffer Improvements * ArgumentError for non-native endian and typestrs_native * Move PyArray related things to their own file rename ArrayFromBuffer to NoCopyArray, and make indexing of NoCopyArray match py indexing for row major arrays too * Void to Nothing/Cvoid * 0.7 deprecations * put my thang down flip it and reverse it * Improve lifecycle management of Pybuffers PyArray no holds a ref to the PyBuffer object. This should ensure that the buffer isn't released until the PyArray is no longer needed setdata! now explicitly releases the buffer it used to point to * Avoid tests when NumPy not available, and fix a test * Clarify pydecref(o::PyBuffer) docstring and change pass a PyPtr_NULL instead of a C_NULL for Py_buffer.obj when creating a new PyBuffer * Remove exports: setdata!, NoCopyArray, isbuftype * Test setdata!, improve NoCopyArray docstring * Add tests for PyArray getindex and fix similar for PyArray indexing into a PyArray was throwing a ambiguous method error for similar(::PyArray, T, dims::Dims) * Add GC rooting note
- Loading branch information