NTPoly
|
#include <TripletList.h>
Public Member Functions | |
TripletList_r (int size=0) | |
void | Resize (int size) |
void | Append (const Triplet_r &value) |
void | SetTripletAt (int index, const Triplet_r &value) |
Triplet_r | GetTripletAt (int index) const |
int | GetSize () const |
~TripletList_r () | |
Standard destructor. | |
Static Public Member Functions | |
static void | SortTripletList (const TripletList_r &list, int matrix_columns, TripletList_r &sorted) |
Friends | |
class | Matrix_lsr |
class | Matrix_lsc |
class | Matrix_ps |
A data type for a list of triplets. As this is related to matrix multiplication, the referencing indices are rows and columns.
NTPoly::TripletList_r::TripletList_r | ( | int | size = 0 | ) |
Construct the triplet list.
size | the size of the list. |
void NTPoly::TripletList_r::Append | ( | const Triplet_r & | value | ) |
Add a value to the end of the triplet list.
value | the triplet value to append. |
int NTPoly::TripletList_r::GetSize | ( | ) | const |
Get the number of entries in a triplet list.
Triplet_r NTPoly::TripletList_r::GetTripletAt | ( | int | index | ) | const |
Get the triplet value at a given index.
index | location to get the triplet at. |
void NTPoly::TripletList_r::Resize | ( | int | size | ) |
Increase the size of a triplet list.
size | the new size. |
void NTPoly::TripletList_r::SetTripletAt | ( | int | index, |
const Triplet_r & | value | ||
) |
Set a triplet value.
index | location to set the triplet at. |
value | the triplet value to set. |
|
static |
Sort a triplet list
list | to be sorted. |
matrix_columns | this is the highest column value in the list |
sorted | a now sorted version of the list. |