dune-common  2.8.0
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Dune::DiagonalRowVector< K, n > Class Template Reference

#include <dune/common/diagonalmatrix.hh>

Inheritance diagram for Dune::DiagonalRowVector< K, n >:
Inheritance graph

Public Types

typedef K field_type
 export the type representing the field More...
 
typedef K block_type
 export the type representing the components More...
 
typedef std::size_t size_type
 The type used for the index access and size operation. More...
 
typedef ContainerWrapperIterator< DiagonalRowVector< K, n >, K, K & > Iterator
 Iterator class for sequential access. More...
 
typedef Iterator iterator
 typedef for stl compliant access More...
 
typedef ContainerWrapperIterator< DiagonalRowVectorConst< K, n >, const K, const K & > ConstIterator
 ConstIterator class for sequential access. More...
 
typedef ConstIterator const_iterator
 typedef for stl compliant access More...
 
enum  { dimension = n }
 
enum  { blocklevel = 1 }
 We are at the leaf of the block recursion. More...
 
enum  { size = n }
 export size More...
 

Public Member Functions

 DiagonalRowVector ()
 Constructor making uninitialized vector. More...
 
 DiagonalRowVector (K *p, int col)
 Constructor making vector with identical coordinates. More...
 
DiagonalRowVectoroperator= (const K &k)
 Assignment operator for scalar. More...
 
K & operator[] ([[maybe_unused]] size_type i)
 random access More...
 
Iterator begin ()
 begin iterator More...
 
Iterator end ()
 end iterator More...
 
Iterator beforeEnd ()
 
Iterator beforeBegin ()
 
const K & operator[] ([[maybe_unused]] size_type i) const
 same for read only access More...
 
bool identical (const DiagonalRowVectorConst< K, n > &other) const
 
ConstIterator begin () const
 begin ConstIterator More...
 
ConstIterator end () const
 end ConstIterator More...
 
ConstIterator beforeEnd () const
 
ConstIterator beforeBegin () const
 
bool operator== (const DiagonalRowVectorConst &y) const
 Binary vector comparison. More...
 
size_type N () const
 number of blocks in the vector (are of size 1 here) More...
 
size_type dim () const
 dimension of the vector space More...
 
size_type rowIndex () const
 index of this row in surrounding matrix More...
 
const K & diagonal () const
 the diagonal value More...
 

Protected Member Functions

DiagonalRowVectoroperator& ()
 
size_type realIndex ([[maybe_unused]] int i) const
 
K * pointer ([[maybe_unused]] size_type i) const
 

Protected Attributes

K * p_
 
size_type row_
 

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