This class implements a dynamic vector of FormulaVector values.
More...
#include <formulamatrix.h>
This class implements a dynamic vector of FormulaVector values.
◆ FormulaMatrix() [1/3]
FormulaMatrix::FormulaMatrix |
( |
| ) |
|
|
inline |
◆ FormulaMatrix() [2/3]
FormulaMatrix::FormulaMatrix |
( |
int |
nr, |
|
|
int |
nc, |
|
|
Formula |
initial |
|
) |
| |
This is the FormulaMatrix constructor for a specified size.
- Parameters
-
nr | is the size of the vector to be created |
nc | is the length of each row to be created (ie. the size of the FormulaVector to be created for each row) |
initial | is the initial value for all the entries of the vector |
◆ FormulaMatrix() [3/3]
FormulaMatrix::FormulaMatrix |
( |
int |
nr, |
|
|
int |
nc, |
|
|
double |
initial |
|
) |
| |
This is the FormulaMatrix constructor for a specified size.
- Parameters
-
nr | is the size of the vector to be created |
nc | is the length of each row to be created (ie. the size of the FormulaVector to be created for each row) |
initial | is the initial value for all the entries of the vector |
◆ ~FormulaMatrix()
FormulaMatrix::~FormulaMatrix |
( |
| ) |
|
This is the FormulaMatrix destructor.
- Note
- This will free all the memory allocated to all the elements of the vector
◆ AddRows() [1/2]
void FormulaMatrix::AddRows |
( |
int |
add, |
|
|
int |
length, |
|
|
double |
value |
|
) |
| |
This will add new entries to the vector.
- Parameters
-
add | is the number of new entries to the vector |
length | is the number of entries to the FormulaVector that is created |
value | is the value that will be entered for the new entries |
◆ AddRows() [2/2]
void FormulaMatrix::AddRows |
( |
int |
add, |
|
|
int |
length, |
|
|
Formula |
value |
|
) |
| |
This will add new entries to the vector.
- Parameters
-
add | is the number of new entries to the vector |
length | is the number of entries to the FormulaVector that is created |
value | is the value that will be entered for the new entries |
◆ Inform()
void FormulaMatrix::Inform |
( |
Keeper * |
keeper | ) |
|
This function will inform Keeper of the values of the stored Formula.
- Parameters
-
keeper | is the Keeper for the current model |
◆ Ncol()
int FormulaMatrix::Ncol |
( |
int |
i = 0 | ) |
const |
|
inline |
This will return the number of columns in row i of the vector.
- Parameters
-
i | is the row of the vector to have the number of columns counted |
- Returns
- the number of columns in row i of the vector
- Note
- This is the number of entries in the FormulaVector that is entry i of the FormulaMatrix
◆ Nrow()
int FormulaMatrix::Nrow |
( |
| ) |
const |
|
inline |
This will return the number of rows of the vector.
- Returns
- the number of rows of the vector
◆ operator[]() [1/2]
This will return the value of an element of the vector.
- Parameters
-
pos | is the element of the vector to be returned |
- Returns
- the value of the specified element
◆ operator[]() [2/2]
This will return the value of an element of the vector.
- Parameters
-
pos | is the element of the vector to be returned |
- Returns
- the value of the specified element
◆ nrow
This is number of rows of the vector.
The documentation for this class was generated from the following files: