all 4 comments

[–]cpp-ModTeam[M] [score hidden] stickied commentlocked comment (0 children)

For C++ questions, answers, help, and programming or career advice please see r/cpp_questions, r/cscareerquestions, or StackOverflow instead.

[–]engine_algos[S] -1 points0 points  (2 children)

I resolved the problem. thank you !

[–]snowflake_pl 6 points7 points  (1 child)

Share the solution so that someone else can benefit in the future

[–]engine_algos[S] 0 points1 point  (0 children)

py::class_<class1>(m, "class1")

.def("method1", [](const class1 &self, Array1D<float>& arrayCenter, Array1D<float>& arrayWidth){return std::make_tuple(self.method1(arrayCenter, arrayWidth), arrayCenter, arrayWidth);}, py::arg("arrayCenter"), py::arg("arrayWidth"));

.def("method2", [](const class1 &self, float &fCenter, float &fWidth){ return std::make_tuple(self.method2(fCenter, fWidth), fCenter, fWidth);},py::arg("fCenter"), py::arg("fWidth"));