Commit Graph

  • 88239ef83d Don't use unittest in tests (Python 2 compat) Ivan Smirnov 2016-08-13 12:38:57 +01:00
  • 006d8b6621 Add casting operators between py::str / py::bytes Ivan Smirnov 2016-08-13 12:38:11 +01:00
  • 3768b6abf9 Use fully qualified name in PYBIND11_DESCR macro Ivan Smirnov 2016-08-02 20:00:55 +01:00
  • ad5ca6d4e6 Added dtype from const char pointer ctor Ivan Smirnov 2016-07-25 00:58:17 +01:00
  • c6257f8641 Allow nullptr in array ctors wherever possible Ivan Smirnov 2016-07-25 00:46:39 +01:00
  • 10af58fa77 Add a few more dtype tests Ivan Smirnov 2016-07-25 00:15:07 +01:00
  • 611e614619 Add tests for py::dtype ctors Ivan Smirnov 2016-07-24 23:52:42 +01:00
  • e19980cc10 Add tests for new array/array_t ctors Ivan Smirnov 2016-07-24 20:30:17 +01:00
  • 98ba98c06b Add a simplified buffer_info ctor for 1-D case Ivan Smirnov 2016-07-24 20:29:44 +01:00
  • 6636ae9d4e Also add the new ctors to py::array_t Ivan Smirnov 2016-07-24 18:54:53 +01:00
  • 6bb0ee1186 Add all possible ctors for py::array Ivan Smirnov 2016-07-24 18:35:14 +01:00
  • d77bc8c343 Add dtype(names, offsets, formats, itemsize) ctor Ivan Smirnov 2016-07-24 17:51:35 +01:00
  • fc5620afa6 Fix a segfault where func object wasn't released Ivan Smirnov 2016-07-24 17:34:53 +01:00
  • 01f7409550 Initial implementation of py::dtype Ivan Smirnov 2016-07-23 21:55:37 +01:00
  • 05cb58ade2 Cleanup: move numpy API bindings out of py::array Ivan Smirnov 2016-07-20 00:54:57 +01:00
  • afb07e7e92 Code reordering / cleanup only Ivan Smirnov 2016-07-20 00:26:18 +01:00
  • 5db82353f7 Rename example20 -> example-numpy-dtypes Ivan Smirnov 2016-07-20 00:24:00 +01:00
  • f9c0defed7 Add numpy wrappers for char[] and std::array<char> Ivan Smirnov 2016-07-20 00:19:24 +01:00
  • 103d5eadc3 Remove redundant definition Ivan Smirnov 2016-07-18 23:36:18 +01:00
  • 098f9aef73 Replace 4096B format buffer with std::string Ivan Smirnov 2016-07-18 22:52:08 +01:00
  • f5f75c6544 Make struct packing in example20 MSVC-compliant Ivan Smirnov 2016-07-18 22:47:40 +01:00
  • b37985ee0c Fix a comment and wrong indentation Ivan Smirnov 2016-07-18 22:37:42 +01:00
  • b51fa02cc3 Store array requests in local variables in tests Ivan Smirnov 2016-07-18 22:35:50 +01:00
  • bf2510ee86 Make buffer_info::as_pybuffer a memoryview ctor Ivan Smirnov 2016-07-18 22:24:53 +01:00
  • 41c3399021 Update npy_format_descriptor::name() Ivan Smirnov 2016-07-18 19:58:20 +01:00
  • 076b953ccd Restore dtype equivalence sanity check Ivan Smirnov 2016-07-17 11:10:19 +01:00
  • 8f2f7cd61c Various cleanup Ivan Smirnov 2016-07-17 11:07:49 +01:00
  • 8fa09cb871 Strip padding fields in dtypes, update the tests Ivan Smirnov 2016-07-06 00:28:12 +01:00
  • 13022f1b8c Bugfix: pass struct size as itemsize to descriptor Ivan Smirnov 2016-07-03 10:22:40 +01:00
  • eeb4c043f9 Change field descriptor offset type to size_t Ivan Smirnov 2016-07-03 10:22:10 +01:00
  • 511401599c Use malloc insterad of calloc for numpy arrays Ivan Smirnov 2016-07-02 16:43:21 +01:00
  • 5412a05cf0 Rename PYBIND11_DTYPE to PYBIND11_NUMPY_DTYPE Ivan Smirnov 2016-07-02 16:18:42 +01:00
  • 5afe9df30a Minor fix in the docs Ivan Smirnov 2016-07-02 16:17:21 +01:00
  • 872bd92575 Use proper type for an int literal Ivan Smirnov 2016-07-02 16:14:57 +01:00
  • 223afe37fa Add documentation re: PYBIND11_DTYPE macro Ivan Smirnov 2016-07-02 15:33:04 +01:00
  • 4c9a160a1d Exclude double type from is_pod_struct Ivan Smirnov 2016-06-29 15:27:21 +01:00
  • 3b803846d5 Add a few comments throughout numpy.h Ivan Smirnov 2016-06-29 15:21:51 +01:00
  • 2f01f01866 Always allocate at least one element Ivan Smirnov 2016-06-29 15:21:10 +01:00
  • b38ca22e94 Add a few braces for clarity Ivan Smirnov 2016-06-29 15:16:49 +01:00
  • 95545e6256 Change PB11_IMPL prefix to PYBIND11, add comment Ivan Smirnov 2016-06-27 23:02:21 +01:00
  • 7bdd74a9fb Fix PYBIND11_DTYPE to work with MSVC compiler Ivan Smirnov 2016-06-27 17:01:22 +01:00
  • 5dc6c5445d Cosmetic: fix indentation Ivan Smirnov 2016-06-27 15:47:51 +01:00
  • 73f56830f8 Add detail::is_pod_struct<T> helper Ivan Smirnov 2016-06-26 16:46:40 +01:00
  • d0bafd90e0 Add a test for buffer format of unbound struct Ivan Smirnov 2016-06-26 16:35:28 +01:00
  • a0e37f250e npy_format_descriptor::format() - fail if unbound Ivan Smirnov 2016-06-26 16:34:39 +01:00
  • 5a47a16e47 Revert accidental whitespace change Ivan Smirnov 2016-06-26 16:21:34 +01:00
  • 40eadfeb73 Make npy_format_descriptor backwards-compat Ivan Smirnov 2016-06-26 16:19:18 +01:00
  • 95e9b12322 Prefix the FIELD_DESCRIPTOR macro Ivan Smirnov 2016-06-26 16:18:46 +01:00
  • 5e71e17bdf Make changes to format_descriptor backwards-compat Ivan Smirnov 2016-06-26 12:42:34 +01:00
  • 4f164217e4 Add dtype_of<T>() function, update the tests Ivan Smirnov 2016-06-22 01:07:20 +01:00
  • 036e8cd32f Remove erroneous py:: prefix in numpy.h Ivan Smirnov 2016-06-22 00:52:16 +01:00
  • 873d267471 Prefix all macros in numpy.h to avoid name clashes Ivan Smirnov 2016-06-22 00:48:36 +01:00
  • 1f54cd9209 Use object instead of ptrs in numpy descriptors Ivan Smirnov 2016-06-22 00:42:10 +01:00
  • 2a7acb6d55 Incref descriptors properly when creating arrays Ivan Smirnov 2016-06-22 00:33:56 +01:00
  • 669e14269d Add test for a function accepting recarray (WIP) Ivan Smirnov 2016-06-21 21:05:29 +01:00
  • f5b166d042 Simplify npy_format_descriptor slightly Ivan Smirnov 2016-06-21 21:03:58 +01:00
  • bdc9902041 Add explicit test for recarray format descriptors Ivan Smirnov 2016-06-19 16:54:07 +01:00
  • 7f913aecab Add tests for nested recarrays Ivan Smirnov 2016-06-19 16:41:15 +01:00
  • 80a3785a66 Borrow field descriptors for recarray dtype Ivan Smirnov 2016-06-19 16:40:52 +01:00
  • 8502f542b3 Add packed recarray tests Ivan Smirnov 2016-06-19 16:09:44 +01:00
  • 2e1565e414 Add empty recarray test, check for calloc fail Ivan Smirnov 2016-06-19 16:05:23 +01:00
  • f10c84eb9b Release format descriptor args before converting Ivan Smirnov 2016-06-19 16:04:01 +01:00
  • bb4015ded3 Add a basic test for recarrays and complex dtypes Ivan Smirnov 2016-06-19 15:50:31 +01:00
  • 2488b32066 Add PYBIND11_DTYPE macro for registering dtypes Ivan Smirnov 2016-06-19 15:48:55 +01:00
  • fab02efb10 Switch away from typenums for numpy descriptors Ivan Smirnov 2016-06-19 14:53:20 +01:00
  • a67c2b52e4 Use memoryview for constructing array from buffer Ivan Smirnov 2016-06-19 14:50:06 +01:00
  • ea2755ccdc Use a macro for numpy API definitions Ivan Smirnov 2016-06-19 14:44:20 +01:00
  • f7143dc589 Update gitignore to ignore debug test builds Ivan Smirnov 2016-06-19 14:41:21 +01:00
  • 7709d6b77d Add memoryview type Ivan Smirnov 2016-06-19 14:40:30 +01:00
  • 8b5fc8b5e1 Dump test output if the test runner fails Ivan Smirnov 2016-06-19 14:40:04 +01:00
  • 42ad328481 Change format_descriptor::value to a static func Ivan Smirnov 2016-06-19 14:39:41 +01:00
  • a7e62e1ca6 Add buffer_info::as_pybuffer() method Ivan Smirnov 2016-06-19 14:37:55 +01:00
  • 3dd325b772 Change npy_format_descriptor typenum to static fn Ivan Smirnov 2016-06-18 00:46:12 +01:00
  • 09f40e010f Merge pull request #282 from jagerman/key-iterators Wenzel Jakob 2016-08-12 08:35:45 +02:00
  • 5aa85be26e Added pybind11::make_key_iterator for map iteration Jason Rhinelander 2016-08-11 21:22:05 -04:00
  • 216df0dd67 quench warning on clang/OSX Wenzel Jakob 2016-08-12 00:59:57 +02:00
  • bb6c1f9c4d add Jason Rhinelander to contributors list Wenzel Jakob 2016-08-12 00:58:49 +02:00
  • f4f2afb6c9 Merge pull request #324 from jagerman/example-constructor-tracking Wenzel Jakob 2016-08-12 00:56:26 +02:00
  • 3f589379ec Improve constructor/destructor tracking Jason Rhinelander 2016-08-07 13:05:26 -04:00
  • 85557b1dec Merge pull request #330 from jagerman/silence-msvc-warning Wenzel Jakob 2016-08-11 22:35:15 +02:00
  • e20fc61a33 Silence MSVC warning Jason Rhinelander 2016-08-11 16:23:23 -04:00
  • 5a4cd3b45c Merge pull request #329 from jagerman/track-same-ptr-instances Wenzel Jakob 2016-08-10 18:24:10 +02:00
  • f2ecd8927e Implement reference_internal with a keep_alive Jason Rhinelander 2016-08-10 12:08:04 -04:00
  • efc2aa7ee7 Removed obsolete documentation about duplicate address problems Jason Rhinelander 2016-08-10 11:38:33 -04:00
  • 1b05ce5bc0 Track registered instances that share a pointer address Jason Rhinelander 2016-08-09 17:57:59 -04:00
  • bb1ee389fd Merge pull request #297 from jagerman/move-python-return-value Wenzel Jakob 2016-08-09 15:14:31 +02:00
  • ed14879a19 Move support for return values of called Python functions Jason Rhinelander 2016-07-21 21:31:05 -04:00
  • 6697f80f7f Merge pull request #325 from Hubble1942/fix-python-library-path-in-windows-venv Wenzel Jakob 2016-08-08 15:42:28 +02:00
  • 72270777a3 Merge pull request #322 from jagerman/document-inherited-virtuals Wenzel Jakob 2016-08-08 15:24:42 +02:00
  • b81c500ce2 Fixed finding python libraries on windows in venv Christian Ewald 2016-08-08 08:31:08 +02:00
  • d6c365bcfa virtual + inheritance example: remove multiple inheritance approach Jason Rhinelander 2016-08-05 17:44:28 -04:00
  • 0ca96e2915 Added advanced doc section on virtual methods + inheritance Jason Rhinelander 2016-08-05 17:02:33 -04:00
  • 5289af5fc0 Merge pull request #319 from dean0x7d/fix-sign-warnings Wenzel Jakob 2016-08-05 00:10:33 +02:00
  • cb6cd6954b Fix signedness warnings Dean Moldovan 2016-08-04 23:55:12 +02:00
  • 934e8dbd80 Merge pull request #310 from dean0x7d/signatures Wenzel Jakob 2016-08-05 00:04:24 +02:00
  • ed23dda93b Adopt PEP 484 type hints for C++ types exported to Python Dean Moldovan 2016-08-04 01:40:40 +02:00
  • ecced6c5ae Use generic arg names for functions without explicitly named arguments Dean Moldovan 2016-07-31 20:03:18 +02:00
  • 52d77d9db9 Merge pull request #318 from jagerman/eigen-base-types Wenzel Jakob 2016-08-04 22:42:18 +02:00
  • b68d8fc2c5 *Really* fix enumeration indices Jason Rhinelander 2016-08-04 16:39:30 -04:00
  • 67bfeb19c1 Merge pull request #316 from jagerman/eigen-base-types Wenzel Jakob 2016-08-04 22:37:26 +02:00