Skip to content
Snippets Groups Projects
Commit 30f54574 authored by René Fritze's avatar René Fritze Committed by René Fritze
Browse files

[la container] prevent tidy error

parent 5ad94f18
No related branches found
No related tags found
Loading
......@@ -52,16 +52,16 @@ void addbind_ContainerInterface(pybind11::class_<C>& c)
using namespace pybind11::literals;
using S = typename C::ScalarType;
#ifndef __clang_analyzer__ // tidy throws a false positive on the lambda
c.def(
"copy",
[](C& self, const bool deep) {
if (deep)
return self.copy();
else
return C(self);
return C(self);
},
"deep"_a = false);
#endif
c.def(
"scal", [](C& self, const S& alpha) { self.scal(alpha); }, "alpha"_a);
c.def("axpy", [](C& self, const S& alpha, const C& xx) { self.axpy(alpha, xx); });
......
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