1. 14 Oct, 2016 1 commit
  2. 13 Oct, 2016 6 commits
  3. 12 Oct, 2016 2 commits
    • Wenzel Jakob's avatar
      Permit creation of NumPy arrays with a "base" object that owns the data · 369e9b39
      Wenzel Jakob authored
      This patch adds an extra base handle parameter to most ``py::array`` and
      ``py::array_t<>`` constructors. If specified along with a pointer to
      data, the base object will be registered within NumPy, which increases
      the base's reference count. This feature is useful to create shallow
      copies of C++ or Python arrays while ensuring that the owners of the
      underlying can't be garbage collected while referenced by NumPy.
      
      The commit also adds a simple test function involving a ``wrap()``
      function that creates shallow copies of various N-D arrays.
      369e9b39
    • Wenzel Jakob's avatar
      added numpy test (minor): check that 'strides' is respected even when creating new arrays · 43f6aa68
      Wenzel Jakob authored
      - This actually works with no changes, I just wasn't 100% convinced and
        decided to write a test to see if it's true.
      43f6aa68
  4. 11 Oct, 2016 1 commit
  5. 09 Oct, 2016 6 commits
  6. 08 Oct, 2016 1 commit
    • Wenzel Jakob's avatar
      unpacking_collector: allow nullptr-valued kwargs argument · e71ab8f4
      Wenzel Jakob authored
      This fixes an issue that can arise when forwarding (*args, **kwargs)
      captured from a pybind11-bound function call to another Python function.
      When the initial function call includes no keyword arguments, the
      py::kwargs field is set to nullptr and causes a crash later on.
      e71ab8f4
  7. 07 Oct, 2016 1 commit
  8. 02 Oct, 2016 2 commits
  9. 30 Sep, 2016 2 commits
  10. 29 Sep, 2016 3 commits
  11. 27 Sep, 2016 6 commits
  12. 26 Sep, 2016 1 commit
  13. 23 Sep, 2016 3 commits
  14. 22 Sep, 2016 4 commits
  15. 21 Sep, 2016 1 commit