Lines Matching refs:copy
56 // Returns element 2,1 from a matrix (used to test copy/nocopy)
203 .def("copy_get", &ReturnTester::get) // Default rvp: copy
209 .def("copy_ref", &ReturnTester::ref, rvp::copy)
210 .def("copy_ref_const", &ReturnTester::refConst, rvp::copy)
214 .def("copy_block", &ReturnTester::block, rvp::copy)
279 // Test that we can prevent copying into an argument that would normally copy: First a version
282 // Now this alternative that calls the tells pybind to fail rather than copy:
285 // Also test a row-major-only no-copy const ref:
292 // requiring a copy!) because the stride value can be safely ignored on a size-1 dimension.
298 // eigen Vector or RowVector, the argument would fail to load because the numpy copy would fail: