MPI_mgparc
|
#include "header.h"
Functions | |
void | CrsMult (const int iza, const int ize, double w[], const double u[], const int id[], const int ik[], const double sk[], const double &alfa) |
void CrsMult | ( | const int | iza, |
const int | ize, | ||
double | w[], | ||
const double | u[], | ||
const int | id[], | ||
const int | ik[], | ||
const double | sk[], | ||
const double & | alfa | ||
) |
Multiplies vector u
with a symmetric CSR matrix K(sk
,id
, ik
). Operation can be performed for only a subset [iza
, ize
] of matrix rows. w := w + alpha*K*u
[in] | iza | first matrix row (starting at 0) |
[in] | ize | last matrix row |
[in,out] | w | distributed local vector. |
[in] | u | accumulated local vector. |
[in] | id | index vector containing the last entry in a CSR row |
[in] | ik | column index vector of CSR matrix |
[in] | sk | vector non-zero entries of CSR matrix |
[in] | alfa | scaling factor |