Reference documentation for deal.II version 8.5.1
Public Types | Public Member Functions | Public Attributes | List of all members
ConstraintMatrix::ConstraintLine Struct Reference

Public Types

typedef std::vector< std::pair< size_type, double > > Entries
 

Public Member Functions

bool operator< (const ConstraintLine &) const
 
bool operator== (const ConstraintLine &) const
 
std::size_t memory_consumption () const
 

Public Attributes

size_type line
 
Entries entries
 
double inhomogeneity
 

Detailed Description

This class represents one line of a constraint matrix.

Definition at line 1179 of file constraint_matrix.h.

Member Typedef Documentation

◆ Entries

typedef std::vector<std::pair<size_type,double> > ConstraintMatrix::ConstraintLine::Entries

A data type in which we store the list of entries that make up the homogenous part of a constraint.

Definition at line 1185 of file constraint_matrix.h.

Member Function Documentation

◆ operator<()

bool ConstraintMatrix::ConstraintLine::operator< ( const ConstraintLine a) const

This operator is a bit weird and unintuitive: it compares the line numbers of two lines. We need this to sort the lines; in fact we could do this using a comparison predicate. However, this way, it is easier, albeit unintuitive since two lines really have no god-given order relation.

Definition at line 67 of file constraint_matrix.cc.

◆ operator==()

bool ConstraintMatrix::ConstraintLine::operator== ( const ConstraintLine a) const

This operator is likewise weird: it checks whether the line indices of the two operands are equal, irrespective of the fact that the contents of the line may be different.

Definition at line 75 of file constraint_matrix.cc.

◆ memory_consumption()

std::size_t ConstraintMatrix::ConstraintLine::memory_consumption ( ) const

Determine an estimate for the memory consumption (in bytes) of this object.

Definition at line 83 of file constraint_matrix.cc.

Member Data Documentation

◆ line

size_type ConstraintMatrix::ConstraintLine::line

Number of this line. Since only very few lines are stored, we can not assume a specific order and have to store the line number explicitly.

Definition at line 1191 of file constraint_matrix.h.

◆ entries

Entries ConstraintMatrix::ConstraintLine::entries

Row numbers and values of the entries in this line.

For the reason why we use a vector instead of a map and the consequences thereof, the same applies as what is said for ConstraintMatrix::lines.

Definition at line 1200 of file constraint_matrix.h.

◆ inhomogeneity

double ConstraintMatrix::ConstraintLine::inhomogeneity

Value of the inhomogeneity.

Definition at line 1205 of file constraint_matrix.h.


The documentation for this struct was generated from the following files: