Lines Matching refs:py

59     py::bind_vector<std::vector<unsigned int>>(m, "VectorInt", py::buffer_protocol());
62 py::class_<El>(m, "El")
63 .def(py::init<int>());
64 py::bind_vector<std::vector<El>>(m, "VectorEl");
65 py::bind_vector<std::vector<std::vector<El>>>(m, "VectorVectorEl");
68 py::bind_map<std::map<std::string, double>>(m, "MapStringDouble");
69 py::bind_map<std::unordered_map<std::string, double>>(m, "UnorderedMapStringDouble");
72 py::bind_map<std::map<std::string, double const>>(m, "MapStringDoubleConst");
73 py::bind_map<std::unordered_map<std::string, double const>>(m, "UnorderedMapStringDoubleConst");
75 py::class_<E_nc>(m, "ENC")
76 .def(py::init<int>())
80 py::bind_vector<std::vector<E_nc>>(m, "VectorENC");
81 m.def("get_vnc", &one_to_n<std::vector<E_nc>>, py::return_value_policy::reference);
82 py::bind_vector<std::deque<E_nc>>(m, "DequeENC");
83 m.def("get_dnc", &one_to_n<std::deque<E_nc>>, py::return_value_policy::reference);
84 py::bind_map<std::map<int, E_nc>>(m, "MapENC");
85 m.def("get_mnc", &times_ten<std::map<int, E_nc>>, py::return_value_policy::reference);
86 py::bind_map<std::unordered_map<int, E_nc>>(m, "UmapENC");
87 m.def("get_umnc", &times_ten<std::unordered_map<int, E_nc>>, py::return_value_policy::reference);
90 py::bind_vector<std::vector<unsigned char>>(m, "VectorUChar", py::buffer_protocol());
94 py::bind_vector<std::vector<VUndeclStruct>>(m, "VectorUndeclStruct", py::buffer_protocol());
98 try { py::module::import("numpy"); }
104 py::class_<VStruct>(m, "VStruct").def_readwrite("x", &VStruct::x);
105 py::bind_vector<std::vector<VStruct>>(m, "VectorStruct", py::buffer_protocol());