dune-assembler 2.12
Loading...
Searching...
No Matches
Dune::Assembler::PETScMatrixBackend Class Reference

#include <dune/assembler/backends/petscmatrixbackend.hh>

Classes

struct  PatternBuilder
 

Public Types

using Matrix = ::Mat
 
using value_type = PetscScalar
 
using size_type = PetscInt
 
using LocalMatrix = FlatMatrix< value_type >
 
using LocalPattern = PETScLocalPattern
 

Public Member Functions

 PETScMatrixBackend (Matrix &matrix) noexcept
 
void setZero ()
 
void finish (MatAssemblyType type=MAT_FINAL_ASSEMBLY)
 
template<class LocalView >
void scatter (const LocalView &localView, const LocalMatrix &localMatrix, const LocalPattern &localPattern)
 
template<class RowLocalView , class ColLocalView >
void scatter (const RowLocalView &rowLocalView, const ColLocalView &colLocalView, const LocalMatrix &localMatrix, const LocalPattern &localPattern)
 
PatternBuilder patternBuilder ()
 
std::size_t nnz () const
 

Member Typedef Documentation

◆ LocalMatrix

◆ LocalPattern

◆ Matrix

◆ size_type

◆ value_type

Constructor & Destructor Documentation

◆ PETScMatrixBackend()

Dune::Assembler::PETScMatrixBackend::PETScMatrixBackend ( Matrix &  matrix)
inlineexplicitnoexcept

Member Function Documentation

◆ finish()

void Dune::Assembler::PETScMatrixBackend::finish ( MatAssemblyType  type = MAT_FINAL_ASSEMBLY)
inline

◆ nnz()

std::size_t Dune::Assembler::PETScMatrixBackend::nnz ( ) const
inline

◆ patternBuilder()

PatternBuilder Dune::Assembler::PETScMatrixBackend::patternBuilder ( )
inline

◆ scatter() [1/2]

template<class LocalView >
void Dune::Assembler::PETScMatrixBackend::scatter ( const LocalView &  localView,
const LocalMatrix &  localMatrix,
const LocalPattern &  localPattern 
)
inline

◆ scatter() [2/2]

template<class RowLocalView , class ColLocalView >
void Dune::Assembler::PETScMatrixBackend::scatter ( const RowLocalView &  rowLocalView,
const ColLocalView &  colLocalView,
const LocalMatrix &  localMatrix,
const LocalPattern &  localPattern 
)
inline

◆ setZero()

void Dune::Assembler::PETScMatrixBackend::setZero ( )
inline

The documentation for this class was generated from the following file: