Skip to content

Commit 7030e32

Browse files
committed
SimplicialCholesky.hpp : return decltype(auto) (hence, reference) from compute()
1 parent a0ae2c9 commit 7030e32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/nanoeigenpy/decompositions/sparse/SimplicialCholesky.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ struct SimplicialCholeskyVisitor : nb::def_visitor<SimplicialCholeskyVisitor> {
3939

4040
.def(
4141
"compute",
42-
[](Solver &self, MatrixType const &matrix) {
42+
[](Solver &self, MatrixType const &matrix) -> decltype(auto) {
4343
return self.compute(matrix);
4444
},
4545
nb::arg("matrix"),

0 commit comments

Comments
 (0)