MCPcopy Create free account
hub / github.com/FEniCS/dolfinx / Matrix

Method Matrix

cpp/dolfinx/la/petsc.cpp:566–571  ·  view source on GitHub ↗

----------------------------------------------------------------------------- -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

564//-----------------------------------------------------------------------------
565//-----------------------------------------------------------------------------
566petsc::Matrix::Matrix(MPI_Comm comm, const SparsityPattern& sp,
567 std::optional<std::string> type)
568 : Operator(petsc::create_matrix(comm, sp, std::move(type)), false)
569{
570 // Do nothing
571}
572//-----------------------------------------------------------------------------
573petsc::Matrix::Matrix(Mat A, bool inc_ref_count) : Operator(A, inc_ref_count)
574{

Callers

nothing calls this directly

Calls 1

create_matrixFunction · 0.50

Tested by

no test coverage detected