|
| | Vector (omp_lock_t *cell_locks, int num_x=1, int num_y=1, int num_z=1, int num_groups=1) |
| | Constructor initializes Vector object as a floating point array and sets the vector dimensions. More...
|
| |
|
virtual | ~Vector () |
| | Destructor deletes the arrays used to represent the vector.
|
| |
| void | incrementValue (int cell, int group, CMFD_PRECISION val) |
| | Increment a value in the vector. More...
|
| |
| void | incrementValues (int cell, int group_start, int group_end, CMFD_PRECISION *vals) |
| | Increment values in the vector. More...
|
| |
|
void | clear () |
| | Clear all values in the vector.
|
| |
| void | scaleByValue (CMFD_PRECISION val) |
| | Scales the vector by a given value. More...
|
| |
|
void | printString () |
| | Print the vector object to the log file.
|
| |
| void | copyTo (Vector *vector) |
| | Copy the values from the current vector to an input vector. More...
|
| |
| CMFD_PRECISION | getValue (int cell, int group) |
| | Get a value at location described by a given cell and group index. More...
|
| |
| CMFD_PRECISION * | getArray () |
| | Get the array describing the vector. More...
|
| |
| int | getNumX () |
| | Get the number of cells in the x dimension. More...
|
| |
| int | getNumY () |
| | Get the number of cells in the y dimension. More...
|
| |
| int | getNumZ () |
| | Get the number of cells in the z dimension. More...
|
| |
| int | getNumGroups () |
| | Get the number of groups in each cell. More...
|
| |
| int | getNumRows () |
| | Get the number of rows in the vector. More...
|
| |
| double | getSum () |
| | Get the sum of all the values in the vector. More...
|
| |
| omp_lock_t * | getCellLocks () |
| | Return the array of cell locks for atomic cell operations. More...
|
| |
| void | setValue (int cell, int group, CMFD_PRECISION val) |
| | Set a value in the vector. More...
|
| |
| void | setValues (int cell, int group_start, int group_end, CMFD_PRECISION *vals) |
| | Set values in the vector. More...
|
| |
| void | setAll (CMFD_PRECISION val) |
| | Fill vector with a value. More...
|
| |
| void Vector::incrementValues |
( |
int |
cell, |
|
|
int |
group_first, |
|
|
int |
group_last, |
|
|
CMFD_PRECISION * |
vals |
|
) |
| |
Increment values in the vector.
This method takes a cell, first group, last group, and floating point value. The cell and groups are used to compute the rows in the vector. If values exist for the rows, the values are incremented by vals; otherwise, they are set.
- Parameters
-
| cell | The cell location. |
| group_first | The first group location to increment. |
| group_last | The last group location to increment. |
| vals | The values used to increment the row locations. NOTE: vals at group_first must be aligned with cache boundaries. |
| void Vector::setValues |
( |
int |
cell, |
|
|
int |
group_first, |
|
|
int |
group_last, |
|
|
CMFD_PRECISION * |
vals |
|
) |
| |
Set values in the vector.
This method takes a cell, first group, last group, and floating point value. The cell and groups are used to compute the rows in the vector. If a value exist for the rows, the values are overwritten.
- Parameters
-
| cell | The cell location. |
| group_first | The first group location to set. |
| group_last | The last group location to set. |
| vals | The values used to set the row locations. |