Skip to content
Snippets Groups Projects
Commit 8cd3178f authored by Dr. Felix Tobias Schindler's avatar Dr. Felix Tobias Schindler
Browse files

fix previous merge

parent 69b56d3d
No related branches found
No related tags found
3 merge requests!41Fix compilation with icc, several other changes,!39Make functions copyable,!35dailywork-ftschindler
Pipeline #63820 failed
...@@ -97,8 +97,6 @@ auto bind_Matrix(pybind11::module& m) ...@@ -97,8 +97,6 @@ auto bind_Matrix(pybind11::module& m)
py::class_<C> c = bind_ProvidesDataAccess<C>(m, ClassName, ClassName); py::class_<C> c = bind_ProvidesDataAccess<C>(m, ClassName, ClassName);
addbind_ProvidesBackend(c);
internal::addbind_Matrix<C, sparse>::template ctor<S>(c); internal::addbind_Matrix<C, sparse>::template ctor<S>(c);
c.def(py::init([](const ssize_t rows, const ssize_t cols, const SparsityPatternDefault& pattern) { c.def(py::init([](const ssize_t rows, const ssize_t cols, const SparsityPatternDefault& pattern) {
return new C(Common::numeric_cast<size_t>(rows), Common::numeric_cast<size_t>(cols), pattern); return new C(Common::numeric_cast<size_t>(rows), Common::numeric_cast<size_t>(cols), pattern);
......
...@@ -46,7 +46,6 @@ auto bind_Vector(pybind11::module& m) ...@@ -46,7 +46,6 @@ auto bind_Vector(pybind11::module& m)
const auto ClassName = Common::to_camel_case(bindings::container_name<C>::value()); const auto ClassName = Common::to_camel_case(bindings::container_name<C>::value());
py::class_<C> c = bind_ProvidesDataAccess<C>(m, ClassName, ClassName); py::class_<C> c = bind_ProvidesDataAccess<C>(m, ClassName, ClassName);
addbind_ProvidesBackend(c);
c.def(py::init([](const ssize_t size, const S& value) { return new C(Common::numeric_cast<size_t>(size), value); }), c.def(py::init([](const ssize_t size, const S& value) { return new C(Common::numeric_cast<size_t>(size), value); }),
"size"_a = 0, "size"_a = 0,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment