Alien  1.3.0
User documentation
Loading...
Searching...
No Matches
Alien::MatrixElementT< Builder > Class Template Reference

Tool to manipulate a matrix entry while building the matrix. More...

#include <core/alien/data/utils/MatrixElement.h>

Public Member Functions

 MatrixElementT (const Arccore::Integer iIndex, const Arccore::Integer jIndex, Builder &parent)
 Constructor.
Arccore::Real operator() () const
 accessor operator
void operator+= (Real value)
 Add and set operator.
void operator-= (Real value)
 Minus and set operator.
void operator= (Real value)
 Assignment operator.
template<typename Builder2>
bool operator= (const MatrixElementT< Builder2 > &other)
 Comparison operator.

Detailed Description

template<typename Builder>
class Alien::MatrixElementT< Builder >

Tool to manipulate a matrix entry while building the matrix.

Template Parameters
BuilderThe type of the builder used to build the matrix

Definition at line 44 of file MatrixElement.h.

Constructor & Destructor Documentation

◆ MatrixElementT()

template<typename Builder>
Alien::MatrixElementT< Builder >::MatrixElementT ( const Arccore::Integer iIndex,
const Arccore::Integer jIndex,
Builder & parent )
inline

Constructor.

Parameters
[in]iIndexThe row index of the entry
[in]jIndexThe col index of the entry
[in]parentThe builder used to build the matrix

Definition at line 53 of file MatrixElement.h.

Member Function Documentation

◆ operator()()

template<typename Builder>
Arccore::Real Alien::MatrixElementT< Builder >::operator() ( ) const
inline

accessor operator

Returns
value

Definition at line 64 of file MatrixElement.h.

◆ operator+=()

template<typename Builder>
void Alien::MatrixElementT< Builder >::operator+= ( Real value)
inline

Add and set operator.

Parameters
[in]valueThe value to add

Definition at line 70 of file MatrixElement.h.

◆ operator-=()

template<typename Builder>
void Alien::MatrixElementT< Builder >::operator-= ( Real value)
inline

Minus and set operator.

Parameters
[in]valueThe value to substract

Definition at line 79 of file MatrixElement.h.

◆ operator=() [1/2]

template<typename Builder>
template<typename Builder2>
bool Alien::MatrixElementT< Builder >::operator= ( const MatrixElementT< Builder2 > & other)
inline

Comparison operator.

Parameters
[in]otherTo be compare against.

Definition at line 98 of file MatrixElement.h.

◆ operator=() [2/2]

template<typename Builder>
void Alien::MatrixElementT< Builder >::operator= ( Real value)
inline

Assignment operator.

Parameters
[in]valueThe value to set

Definition at line 88 of file MatrixElement.h.


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