![]() |
CLA3P v0.3.1
Compact Linear Algebra Parallel Portable Package
|
Coordinate-value triple container. More...

Public Member Functions | |
| Tuple () | |
| Default constructor. | |
| Tuple (T_Int r, T_Int c, T_Scalar v) | |
| Value constructor. | |
| ~Tuple () | |
| Destructor. | |
| T_Scalar | val () const |
| Value accessor. | |
| void | clear () |
| Clears the tuple. | |
| Public Member Functions inherited from cla3p::Coord< T_Int > | |
| Coord () | |
| Default constructor. | |
| Coord (T_Int r, T_Int c) | |
| Coordinate constructor. | |
| ~Coord () | |
| Destructor. | |
| T_Int | row () const |
| Row index accessor. | |
| T_Int | col () const |
| Column index accessor. | |
Coordinate-value triple container.
| T_Int | Integer type for coordinate indices. |
| T_Scalar | Scalar type for the stored value. |
Extends Coord with an associated scalar value, representing a position and its corresponding data within a two-dimensional structure.
|
inline |
Default constructor.
Constructs a tuple initialized to (0, 0, 0).
|
inline |
Value constructor.
Constructs a tuple with specified row, column, and value.
| [in] | r | The row index. |
| [in] | c | The column index. |
| [in] | v | The scalar value. |
|
inline |
Destructor.
Destroys the tuple object.
|
inline |
Value accessor.
Returns the scalar value stored in the tuple.
|
inline |
Clears the tuple.
Resets the coordinate and value to their default states (0, 0, 0).