OGS
MathLib::SerialSparsityPattern< IndexType > Struct Template Reference

Detailed Description

template<typename IndexType>
struct MathLib::SerialSparsityPattern< IndexType >

Per-row nonzero count pattern for the Eigen (serial) build.

number_non_zeros_per_row is sized to the number of global matrix rows and holds the number of nonzeros per row.

Definition at line 19 of file SparsityPattern.h.

#include <SparsityPattern.h>

Public Member Functions

IndexType nnzInRow (IndexType const row) const
 Number of nonzeros in the given global row.
IndexType numberOfRows () const
 Number of global rows the pattern describes.

Public Attributes

std::vector< IndexType > number_non_zeros_per_row

Member Function Documentation

◆ nnzInRow()

template<typename IndexType>
IndexType MathLib::SerialSparsityPattern< IndexType >::nnzInRow ( IndexType const row) const
inline

Number of nonzeros in the given global row.

Definition at line 24 of file SparsityPattern.h.

References number_non_zeros_per_row.

◆ numberOfRows()

template<typename IndexType>
IndexType MathLib::SerialSparsityPattern< IndexType >::numberOfRows ( ) const
inline

Number of global rows the pattern describes.

Definition at line 30 of file SparsityPattern.h.

31 {
32 return static_cast<IndexType>(number_non_zeros_per_row.size());
33 }

References number_non_zeros_per_row.

Member Data Documentation

◆ number_non_zeros_per_row

template<typename IndexType>
std::vector<IndexType> MathLib::SerialSparsityPattern< IndexType >::number_non_zeros_per_row

Definition at line 21 of file SparsityPattern.h.

Referenced by nnzInRow(), and numberOfRows().


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