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

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

Inheritance diagram for Dune::Assembler::LocalPatternMatrix:
Inheritance graph

Public Types

using size_type = std::size_t
 
using index_type = typename Base::index_type
 
using value_type = typename Base::value_type
 
using extents_type = typename Base::extents_type
 
using mapping_type = typename Base::mapping_type
 
typedef Element element_type
 
typedef LayoutPolicy layout_type
 
typedef Container container_type
 
typedef typename extents_type::rank_type rank_type
 
typedef mdspan< element_type, extents_type, layout_type > mdspan_type
 
typedef mdspan< const element_type, extents_type, layout_type > const_mdspan_type
 
typedef decltype(std::to_address(std::declval< container_type >().begin())) pointer
 
typedef typename container_type::reference reference
 
typedef decltype(std::to_address(std::declval< container_type >().cbegin())) const_pointer
 
typedef typename container_type::const_reference const_reference
 

Public Member Functions

void add (size_type row, size_type col)
 
void addAll ()
 
bool contains (size_type row, size_type col) const
 
bool containsAll () const
 
void clear ()
 
template<class RowIndices , class ColIndices , class F >
void visitEntries (const RowIndices &rowIndices, const ColIndices &colIndices, F &&f) const
 
constexpr BracketProxy< const FlatMatrix > operator[] (index_type i) const
 
constexpr BracketProxy< FlatMatrix > operator[] (index_type i)
 
constexpr reference operator[] (Index index)
 
constexpr const_reference operator[] (Index index) const
 
constexpr reference operator[] (std::span< Index, extents_type::rank()> indices)
 
constexpr const_reference operator[] (std::span< Index, extents_type::rank()> indices) const
 
constexpr reference operator[] (const std::array< Index, extents_type::rank()> &indices)
 
constexpr const_reference operator[] (const std::array< Index, extents_type::rank()> &indices) const
 
constexpr index_type rows () const noexcept
 
constexpr index_type cols () const noexcept
 
constexpr const mapping_type & mapping () const noexcept
 
constexpr const container_type & container () const noexcept
 
constexpr container_type && extract_container () &&noexcept
 
constexpr bool is_unique () const noexcept
 
constexpr bool is_exhaustive () const noexcept
 
constexpr bool is_strided () const noexcept
 
constexpr const extents_type & extents () const noexcept
 
constexpr operator mdspan< V, E, L, A > ()
 
constexpr operator mdspan< V, E, L, A > () const
 
constexpr mdspan< element_type, extents_type, layout_type, AccessorPolicy > to_mdspan (const AccessorPolicy &a=AccessorPolicy{})
 
constexpr mdspan< const element_type, extents_type, layout_type, AccessorPolicy > to_mdspan (const AccessorPolicy &a=AccessorPolicy{}) const
 
constexpr reference operator() (Indices... indices)
 
constexpr const_reference operator() (Indices... indices) const
 
constexpr reference at (Indices... indices)
 
constexpr const_reference at (Indices... indices) const
 
constexpr reference at (std::span< Index, extents_type::rank()> indices)
 
constexpr const_reference at (std::span< Index, extents_type::rank()> indices) const
 
constexpr reference at (const std::array< Index, extents_type::rank()> &indices)
 
constexpr const_reference at (const std::array< Index, extents_type::rank()> &indices) const
 
constexpr index_type extent (rank_type r) const noexcept
 
constexpr size_type size () const noexcept
 
constexpr std::size_t container_size () const
 
constexpr bool empty () const noexcept
 
constexpr index_type stride (rank_type r) const
 
constexpr pointer container_data () noexcept
 
constexpr const_pointer container_data () const noexcept
 
Modifiers
void resize (index_type rows, index_type cols, const value_type &value)
 Change the shape of the matrix and resize the underlying container with given default value.
 
void resize (index_type rows, index_type cols)
 Change the shape of the matrix and resize the underlying container.
 

Static Public Member Functions

static constexpr bool is_always_unique () noexcept
 
static constexpr bool is_always_exhaustive () noexcept
 
static constexpr bool is_always_strided () noexcept
 
static constexpr rank_type rank () noexcept
 
static constexpr rank_type rank_dynamic () noexcept
 
static constexpr std::size_t static_extent (rank_type r) noexcept
 

Protected Attributes

container_type container_
 
DUNE_NO_UNIQUE_ADDRESS mapping_type mapping_
 

Member Typedef Documentation

◆ extents_type

◆ index_type

◆ mapping_type

◆ size_type

◆ value_type

Member Function Documentation

◆ add()

void Dune::Assembler::LocalPatternMatrix::add ( size_type  row,
size_type  col 
)
inline

◆ addAll()

void Dune::Assembler::LocalPatternMatrix::addAll ( )
inline

◆ clear()

void Dune::Assembler::LocalPatternMatrix::clear ( )
inline

◆ cols()

constexpr index_type Dune::Assembler::FlatMatrix< char >::cols ( ) const
inlineconstexprnoexceptinherited

◆ contains()

bool Dune::Assembler::LocalPatternMatrix::contains ( size_type  row,
size_type  col 
) const
inline

◆ containsAll()

bool Dune::Assembler::LocalPatternMatrix::containsAll ( ) const
inline

◆ operator[]() [1/2]

constexpr BracketProxy< FlatMatrix > Dune::Assembler::FlatMatrix< char >::operator[] ( index_type  i)
inlineconstexprinherited

◆ operator[]() [2/2]

constexpr BracketProxy< const FlatMatrix > Dune::Assembler::FlatMatrix< char >::operator[] ( index_type  i) const
inlineconstexprinherited

◆ resize() [1/2]

void Dune::Assembler::FlatMatrix< char >::resize ( index_type  rows,
index_type  cols 
)
inlineinherited

Change the shape of the matrix and resize the underlying container.

◆ resize() [2/2]

void Dune::Assembler::FlatMatrix< char >::resize ( index_type  rows,
index_type  cols,
const value_type &  value 
)
inlineinherited

Change the shape of the matrix and resize the underlying container with given default value.

◆ rows()

constexpr index_type Dune::Assembler::FlatMatrix< char >::rows ( ) const
inlineconstexprnoexceptinherited

◆ visitEntries()

void Dune::Assembler::LocalPatternMatrix::visitEntries ( const RowIndices &  rowIndices,
const ColIndices &  colIndices,
F &&  f 
) const
inline

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