Namespaces | Functions
calc_L2.hpp File Reference
#include <petscksp.h>

Go to the source code of this file.

Namespaces

 SPE
 Namespace containing all functions and data classes for this solver.
 

Functions

int SPE::calc_L2 (PetscReal &error, Vec &x1, Vec &x2, PetscInt n, NormType type=NORM_2)
 calculate the \( L_2 \) norm of the difference between \(x_1\) and \(x_2\) vectors and return More...
 
int SPE::calc_L2 (PetscReal &error, Mat &x1, Mat &x2, PetscInt n, NormType type=NORM_2)
 calculate the \( L_2 \) norm of the difference between \(x_1\) and \(x_2\) matrix diagonals and return More...