


Public Member Functions | |
| serial_comm (int n_, const double *matrix_) | |
| virtual void | matrixVectorProduct (const double *src, double *dest) |
| Compute dest = A src, where A is the square matrix. | |
| virtual double | dotProduct (const double *a, const double *b) |
| Do a global dot product of these two vectors. | |
Private Member Functions | |
| double | at (int r, int c) const |
Private Attributes | |
| int | n |
| const double * | matrix |
Definition at line 19 of file solver_test.C.
| serial_comm::serial_comm | ( | int | n_, | |
| const double * | matrix_ | |||
| ) | [inline] |
Definition at line 26 of file solver_test.C.
Definition at line 22 of file solver_test.C.
Referenced by matrixVectorProduct().

| virtual void serial_comm::matrixVectorProduct | ( | const double * | src, | |
| double * | dest | |||
| ) | [inline, virtual] |
Compute dest = A src, where A is the square matrix.
This product must take into account values from other chunks, as well as this one. This is a collective call. It is not valid for src to equal dest.
Implements ILSI_Comm.
Definition at line 29 of file solver_test.C.
Referenced by main().


| virtual double serial_comm::dotProduct | ( | const double * | a, | |
| const double * | b | |||
| ) | [inline, virtual] |
Do a global dot product of these two vectors.
This dot product must take into account values from other processors. It is valid for a to equal b. All chunks are guaranteed to get the same return value.
Implements ILSI_Comm.
Definition at line 38 of file solver_test.C.
int serial_comm::n [private] |
Definition at line 20 of file solver_test.C.
Referenced by at(), dotProduct(), and matrixVectorProduct().
const double* serial_comm::matrix [private] |
1.5.5