PPL Logo

serial_comm Class Reference

An ILSI_Comm that holds a single, serial, dense matrix. More...

Inheritance diagram for serial_comm:

Inheritance graph
[legend]
Collaboration diagram for serial_comm:

Collaboration graph
[legend]

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

Detailed Description

An ILSI_Comm that holds a single, serial, dense matrix.

Definition at line 19 of file solver_test.C.


Constructor & Destructor Documentation

serial_comm::serial_comm ( int  n_,
const double *  matrix_ 
) [inline]

Definition at line 26 of file solver_test.C.


Member Function Documentation

double serial_comm::at ( int  r,
int  c 
) const [inline, private]

Definition at line 22 of file solver_test.C.

References matrix, and n.

Referenced by matrixVectorProduct().

Here is the caller graph for this function:

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.

References at(), c, n, and r.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

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.

References n, and r.


Field Documentation

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]

Definition at line 21 of file solver_test.C.

Referenced by at().


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

Generated on Mon Sep 21 08:29:49 2020 for Charm++ by  doxygen 1.5.5