Chemical Data Processing Library C++ API - Version 1.4.0
Static Public Member Functions | List of all members
CDPL::Math::Upper Struct Reference

Tag selecting the upper-triangular view (entries strictly below the diagonal read as zero) for Math::TriangularAdapter. More...

#include <MatrixAdapter.hpp>

Static Public Member Functions

template<typename M >
static M::ConstReference get (const M &m, typename M::SizeType i, typename M::SizeType j)
 Returns element (i, j) of m under the upper-triangular policy (zero below the diagonal). More...
 

Detailed Description

Tag selecting the upper-triangular view (entries strictly below the diagonal read as zero) for Math::TriangularAdapter.

Member Function Documentation

◆ get()

template<typename M >
static M::ConstReference CDPL::Math::Upper::get ( const M &  m,
typename M::SizeType  i,
typename M::SizeType  j 
)
inlinestatic

Returns element (i, j) of m under the upper-triangular policy (zero below the diagonal).

Template Parameters
MThe Math::TriangularAdapter instantiation.
Parameters
mThe adapter providing access to the underlying matrix and the zero/one fill values.
iThe zero-based row index.
jThe zero-based column index.
Returns
The matrix element if \( i \le j \), and the zero fill value otherwise.

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