Home
last modified time | relevance | path

Searched refs:noconvert (Results 1 – 12 of 12) sorted by relevance

/external/python/pybind11/tests/
Dtest_custom_type_casters.cpp106 ….def("g", &ArgInspector::g, "a"_a.noconvert(), "b"_a, "c"_a.noconvert()=13, "d"_a=ArgInspector2(),… in TEST_SUBMODULE()
107 .def_static("h", &ArgInspector::h, py::arg{}.noconvert(), py::arg() = ArgAlwaysConverts()) in TEST_SUBMODULE()
110 …py::arg{}.noconvert(false), py::arg_v(nullptr, ArgInspector1()).noconvert(true), py::arg() = ArgAl… in TEST_SUBMODULE()
113 m.def("floats_only", [](double f) { return 0.5 * f; }, "f"_a.noconvert()); in TEST_SUBMODULE()
115 m.def("ints_only", [](int i) { return i / 2; }, "i"_a.noconvert()); in TEST_SUBMODULE()
Dtest_builtin_casters.py291 convert, noconvert = m.int_passthrough, m.int_passthrough_noconvert
294 pytest.raises(TypeError, noconvert, v)
300 assert noconvert(7) == 7
310 assert noconvert(Index()) == 42
312 assert noconvert(IntAndIndex()) == 0
322 convert, noconvert = m.int_passthrough, m.int_passthrough_noconvert
325 pytest.raises(TypeError, noconvert, v)
329 assert noconvert(np.intc(42)) == 42
437 convert, noconvert = m.bool_passthrough, m.bool_passthrough_noconvert
440 pytest.raises(TypeError, noconvert, v)
[all …]
Dtest_numpy_array.cpp264 sm.def("overloaded3", [](py::array_t<int>) { return "int"; }, py::arg{}.noconvert()); in TEST_SUBMODULE()
265 sm.def("overloaded3", [](py::array_t<double>) { return "double"; }, py::arg{}.noconvert()); in TEST_SUBMODULE()
289 }, py::arg{}.noconvert(), py::arg()); in TEST_SUBMODULE()
343 }, py::arg{}.noconvert(), py::arg()); in TEST_SUBMODULE()
424 "a"_a.noconvert()); in TEST_SUBMODULE()
427 "a"_a.noconvert()); in TEST_SUBMODULE()
430 "a"_a.noconvert()); in TEST_SUBMODULE()
433 "a"_a.noconvert()); in TEST_SUBMODULE()
436 "a"_a.noconvert()); in TEST_SUBMODULE()
439 "a"_a.noconvert()); in TEST_SUBMODULE()
Dtest_eigen.cpp284 py::arg{}.noconvert()); in TEST_SUBMODULE()
287 py::arg{}.noconvert()); in TEST_SUBMODULE()
293 …def("iss738_f1", &adjust_matrix<const Eigen::Ref<const Eigen::MatrixXd> &>, py::arg{}.noconvert()); in TEST_SUBMODULE()
294 …<const Eigen::Ref<const Eigen::Matrix<double, -1, -1, Eigen::RowMajor>> &>, py::arg{}.noconvert()); in TEST_SUBMODULE()
Dtest_builtin_casters.cpp146 m.def("int_passthrough_noconvert", [](int arg) { return arg; }, py::arg{}.noconvert()); in PYBIND11_NAMESPACE_END()
194 m.def("bool_passthrough_noconvert", [](bool arg) { return arg; }, py::arg{}.noconvert()); in PYBIND11_NAMESPACE_END()
202 m.def("bool_passthrough_noconvert2", [](bool arg) { return arg; }, py::arg().noconvert()); in PYBIND11_NAMESPACE_END()
Dtest_numpy_array.py491 def test_argument_conversions(forcecast, contiguity, noconvert): argument
499 if noconvert:
506 if not noconvert:
/external/python/pybind11/docs/advanced/
Dfunctions.rst432 through ``py::arg`` by calling the ``.noconvert()`` method of the ``py::arg``
437 m.def("floats_only", [](double f) { return 0.5 * f; }, py::arg("f").noconvert());
440 Attempting the call the second function (the one without ``.noconvert()``) with
441 an integer will succeed, but attempting to call the ``.noconvert()`` version
459 name, i.e. by specifying ``py::arg().noconvert()``.
467 no-convert argument modified to ``py::arg().noconvert()``.
535 every argument had been specified as ``py::arg().noconvert()`` as described
540 an explicit ``py::arg().noconvert()`` attribute in the function definition).
/external/python/pybind11/docs/advanced/cast/
Deigen.rst233 should bind arguments using the ``py::arg().noconvert()`` annotation (as
255 .def("some_method", &MyClass::some_method, py::arg().noconvert());
258 "big"_a.noconvert(), // <- Don't allow copying for this arg
268 Note that explicitly specifying ``.noconvert()`` is not required for *mutable*
/external/python/pybind11/include/pybind11/
Dcast.h1875 arg &noconvert(bool flag = true) { flag_noconvert = flag; return *this; }
1919 arg_v &noconvert(bool flag = true) { arg::noconvert(flag); return *this; }
/external/curl/packages/vms/
Dcurl_gnv_build_steps.txt33 of the restored files, since /Interchange/noconvert was not available at the
/external/python/pybind11/docs/advanced/pycpp/
Dnumpy.rst326 }, py::arg().noconvert());
/external/python/pybind11/docs/
Dchangelog.rst29 ``__int__`` anymore with ``noconvert`` or during the first round of trying
1123 conversions to take place. A special ``noconvert()`` syntax can be used to