----------------------------------------------------------------------------- -----------------------------------------------------------------------------
| 496 | //----------------------------------------------------------------------------- |
| 497 | //----------------------------------------------------------------------------- |
| 498 | petsc::Operator::Operator(Mat A, bool inc_ref_count) : _matA(A) |
| 499 | { |
| 500 | assert(A); |
| 501 | if (inc_ref_count) |
| 502 | PetscObjectReference((PetscObject)_matA); |
| 503 | } |
| 504 | //----------------------------------------------------------------------------- |
| 505 | petsc::Operator::Operator(Operator&& A) noexcept |
| 506 | : _matA(std::exchange(A._matA, nullptr)) |
nothing calls this directly
no outgoing calls
no test coverage detected