Dune-Fufem 2.11-git
Loading...
Searching...
No Matches
Dune::Fufem::NumPyCSRMatrixBackend< T > Class Template Reference

Implementation of the MatrixBackend concept NumPyCSRMatrix. More...

#include <dune/fufem/backends/numpybackend.hh>

Public Types

using value_type = T
 
using LocalMatrix = Dune::Assembler::FlatMatrix< value_type >
 
using PatternBuilder = Impl::NumPyCSRMatrixPatternBuilder< T >
 
using LocalPattern = typename PatternBuilder::LocalPattern
 
using Matrix = NumPyCSRMatrix< T >
 
using Entry = T
 

Public Member Functions

 NumPyCSRMatrixBackend (Matrix &matrix)
 
PatternBuilder patternBuilder ()
 
template<class RowIndex , class ColIndex >
auto nnzIndex (const RowIndex &row, const ColIndex &col) const
 
template<class RowIndex , class ColIndex >
const value_typeoperator() (const RowIndex &row, const ColIndex &col) const
 
template<class RowIndex , class ColIndex >
value_typeoperator() (const RowIndex &row, const ColIndex &col)
 
template<class RowLocalView , class ColLocalView >
void scatter (const RowLocalView &rowLocalView, const ColLocalView &colLocalView, const LocalMatrix &localMatrix, const LocalPattern &localPattern)
 
void setZero ()
 
const Matrixmatrix () const
 
Matrixmatrix ()
 
template<class Value >
void assign (const Value &value)
 

Protected Attributes

Matrixmatrix_
 

Detailed Description

template<class T = double>
class Dune::Fufem::NumPyCSRMatrixBackend< T >

Implementation of the MatrixBackend concept NumPyCSRMatrix.

This implements MatrixBackend concept from dune-fufem for NumPyCSRMatrix objects.

Member Typedef Documentation

◆ Entry

template<class T = double>
using Dune::Fufem::NumPyCSRMatrixBackend< T >::Entry = T

◆ LocalMatrix

template<class T = double>
using Dune::Fufem::NumPyCSRMatrixBackend< T >::LocalMatrix = Dune::Assembler::FlatMatrix<value_type>

◆ LocalPattern

template<class T = double>
using Dune::Fufem::NumPyCSRMatrixBackend< T >::LocalPattern = typename PatternBuilder::LocalPattern

◆ Matrix

template<class T = double>
using Dune::Fufem::NumPyCSRMatrixBackend< T >::Matrix = NumPyCSRMatrix<T>

◆ PatternBuilder

template<class T = double>
using Dune::Fufem::NumPyCSRMatrixBackend< T >::PatternBuilder = Impl::NumPyCSRMatrixPatternBuilder<T>

◆ value_type

template<class T = double>
using Dune::Fufem::NumPyCSRMatrixBackend< T >::value_type = T

Constructor & Destructor Documentation

◆ NumPyCSRMatrixBackend()

template<class T = double>
Dune::Fufem::NumPyCSRMatrixBackend< T >::NumPyCSRMatrixBackend ( Matrix matrix)
inline

Member Function Documentation

◆ assign()

template<class T = double>
template<class Value >
void Dune::Fufem::NumPyCSRMatrixBackend< T >::assign ( const Value &  value)
inline

◆ matrix() [1/2]

template<class T = double>
Matrix & Dune::Fufem::NumPyCSRMatrixBackend< T >::matrix ( )
inline

◆ matrix() [2/2]

template<class T = double>
const Matrix & Dune::Fufem::NumPyCSRMatrixBackend< T >::matrix ( ) const
inline

◆ nnzIndex()

template<class T = double>
template<class RowIndex , class ColIndex >
auto Dune::Fufem::NumPyCSRMatrixBackend< T >::nnzIndex ( const RowIndex &  row,
const ColIndex &  col 
) const
inline

◆ operator()() [1/2]

template<class T = double>
template<class RowIndex , class ColIndex >
value_type & Dune::Fufem::NumPyCSRMatrixBackend< T >::operator() ( const RowIndex &  row,
const ColIndex &  col 
)
inline

◆ operator()() [2/2]

template<class T = double>
template<class RowIndex , class ColIndex >
const value_type & Dune::Fufem::NumPyCSRMatrixBackend< T >::operator() ( const RowIndex &  row,
const ColIndex &  col 
) const
inline

◆ patternBuilder()

template<class T = double>
PatternBuilder Dune::Fufem::NumPyCSRMatrixBackend< T >::patternBuilder ( )
inline

◆ scatter()

template<class T = double>
template<class RowLocalView , class ColLocalView >
void Dune::Fufem::NumPyCSRMatrixBackend< T >::scatter ( const RowLocalView &  rowLocalView,
const ColLocalView &  colLocalView,
const LocalMatrix localMatrix,
const LocalPattern localPattern 
)
inline

◆ setZero()

template<class T = double>
void Dune::Fufem::NumPyCSRMatrixBackend< T >::setZero ( )
inline

Member Data Documentation

◆ matrix_

template<class T = double>
Matrix* Dune::Fufem::NumPyCSRMatrixBackend< T >::matrix_
protected

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