The Residual procedure calculates the global residual vector of a linear system represented by an ELL Matrix and a two Mathematic Vectors.
Calling syntax:
call Residual (Residual_MV, A_ELLM, X_MV, B_MV) |
Input variables:
A_ELLM | An ELL_Matrix object to be multiplied. | ||
X_MV | A Mathematic_Vector object to be multiplied. The Structure of the Mathematic_Vector must be the same as the Column_Structure of the ELL_Matrix. | ||
B_MV | Mathematic_Vector object to be subtracted from the MatVec. The Structure of the Mathematic_Vector must be the same as the Row_Structure of A_ELLM. |
Output variable:
Residual_MV | Mathematic_Vector object result of multiplying A_ELLM by X_MV and subtracting B_MV. The resultant Mathematic_Vector will have the same Structure as the Row_Structure of the ELL_Matrix. |
The Residual_ELL_Matrix code listing contains additional documentation.
Michael L. Hall