Skip to content
Snippets Groups Projects
Commit b8727f20 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

decompositions/cholesky: expose permutations

parent 938d2983
No related branches found
No related tags found
No related merge requests found
...@@ -81,6 +81,13 @@ struct SimplicialCholeskyVisitor ...@@ -81,6 +81,13 @@ struct SimplicialCholeskyVisitor
"Returns the solution X of A X = B using the current " "Returns the solution X of A X = B using the current "
"decomposition of A where B is a right hand side matrix.") "decomposition of A where B is a right hand side matrix.")
.def("permutationP", &Solver::permutationP, bp::arg("self"),
"Returns the permutation P.",
bp::return_value_policy<bp::copy_const_reference>())
.def("permutationPinv", &Solver::permutationPinv, bp::arg("self"),
"Returns the inverse P^-1 of the permutation P.",
bp::return_value_policy<bp::copy_const_reference>())
.def("solve", &solve<MatrixType>, bp::args("self", "B"), .def("solve", &solve<MatrixType>, bp::args("self", "B"),
"Returns the solution X of A X = B using the current " "Returns the solution X of A X = B using the current "
"decomposition of A where B is a right hand side matrix."); "decomposition of A where B is a right hand side matrix.");
......
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