Skip to content

Commit eeb4888

Browse files
authored
linalg/ldlt : mark p() and pt() permutation matrix getters const (#180)
* linalg/ldlt : mark p() and pt() permutation matrix getters const * linalg/ldlt : fix d_mut() returning DViewMut
1 parent 680a4e3 commit eeb4888

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/proxsuite/linalg/dense/ldlt.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ struct Ldlt
678678
Eigen::InnerStride<DYN>{ stride + 1 },
679679
};
680680
}
681-
auto d_mut() noexcept -> DView
681+
auto d_mut() noexcept -> DViewMut
682682
{
683683
return {
684684
ld_storage.ptr_mut(),
@@ -687,8 +687,8 @@ struct Ldlt
687687
Eigen::InnerStride<DYN>{ stride + 1 },
688688
};
689689
}
690-
auto p() -> Perm { return { VecMapISize(perm.ptr(), dim()) }; }
691-
auto pt() -> Perm { return { VecMapISize(perm_inv.ptr(), dim()) }; }
690+
auto p() const -> Perm { return { VecMapISize(perm.ptr(), dim()) }; }
691+
auto pt() const -> Perm { return { VecMapISize(perm_inv.ptr(), dim()) }; }
692692

693693
/*!
694694
* Returns the memory storage requirements for a factorization of a matrix

0 commit comments

Comments
 (0)