NTPoly
Public Member Functions | Static Public Member Functions | Friends | List of all members
NTPoly::TripletList_r Class Reference

#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
 

Detailed Description

A data type for a list of triplets. As this is related to matrix multiplication, the referencing indices are rows and columns.

Constructor & Destructor Documentation

◆ TripletList_r()

NTPoly::TripletList_r::TripletList_r ( int  size = 0)

Construct the triplet list.

Parameters
sizethe size of the list.

Member Function Documentation

◆ Append()

void NTPoly::TripletList_r::Append ( const Triplet_r value)

Add a value to the end of the triplet list.

Parameters
valuethe triplet value to append.

◆ GetSize()

int NTPoly::TripletList_r::GetSize ( ) const

Get the number of entries in a triplet list.

Returns
the number of entries in the list.

◆ GetTripletAt()

Triplet_r NTPoly::TripletList_r::GetTripletAt ( int  index) const

Get the triplet value at a given index.

Parameters
indexlocation to get the triplet at.

◆ Resize()

void NTPoly::TripletList_r::Resize ( int  size)

Increase the size of a triplet list.

Parameters
sizethe new size.

◆ SetTripletAt()

void NTPoly::TripletList_r::SetTripletAt ( int  index,
const Triplet_r value 
)

Set a triplet value.

Parameters
indexlocation to set the triplet at.
valuethe triplet value to set.

◆ SortTripletList()

void NTPoly::TripletList_r::SortTripletList ( const TripletList_r list,
int  matrix_columns,
TripletList_r sorted 
)
static

Sort a triplet list

Parameters
listto be sorted.
matrix_columnsthis is the highest column value in the list
sorteda now sorted version of the list.

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