HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_SparseMatrixCSRT< T >::Triplet Struct Reference

#include <UT_SparseMatrix.h>

Public Member Functions

 Triplet ()
 Construct a zero triplet. More...
 
 Triplet (exint r, exint c, T v)
 Construct a triplet for the given row and column with value v. More...
 
bool operator< (const Triplet &t) const
 

Public Attributes

exint myRow
 
exint myCol
 
T myValue
 

Detailed Description

template<typename T>
struct UT_SparseMatrixCSRT< T >::Triplet

Triplet to construct matrix. Is used only for setValues and addValues to construct the matrix.

Definition at line 667 of file UT_SparseMatrix.h.

Constructor & Destructor Documentation

template<typename T>
UT_SparseMatrixCSRT< T >::Triplet::Triplet ( )
inline

Construct a zero triplet.

Definition at line 673 of file UT_SparseMatrix.h.

template<typename T>
UT_SparseMatrixCSRT< T >::Triplet::Triplet ( exint  r,
exint  c,
T  v 
)
inline

Construct a triplet for the given row and column with value v.

Definition at line 676 of file UT_SparseMatrix.h.

Member Function Documentation

template<typename T>
bool UT_SparseMatrixCSRT< T >::Triplet::operator< ( const Triplet t) const
inline

Returns true if the triplet's coordinate comes before the given triplet's coordinate.

Definition at line 680 of file UT_SparseMatrix.h.

Member Data Documentation

template<typename T>
exint UT_SparseMatrixCSRT< T >::Triplet::myCol

Definition at line 669 of file UT_SparseMatrix.h.

template<typename T>
exint UT_SparseMatrixCSRT< T >::Triplet::myRow

Definition at line 668 of file UT_SparseMatrix.h.

template<typename T>
T UT_SparseMatrixCSRT< T >::Triplet::myValue

Definition at line 670 of file UT_SparseMatrix.h.


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