calc_L2.hpp
Go to the documentation of this file.
1 #ifndef CALC_L2_H
2 #define CALC_L2_H
3 #include <petscksp.h>
4 namespace SPE{
9  int calc_L2(
10  PetscReal &error,
11  Vec &x1,
12  Vec &x2,
13  PetscInt n,
14  NormType type=NORM_2
15  );
20  int calc_L2(
21  PetscReal &error,
22  Mat &x1,
23  Mat &x2,
24  PetscInt n,
25  NormType type=NORM_2
26  );
27 
28 }
29 
30 #endif
31 
Namespace containing all functions and data classes for this solver.
Definition: Ax_b.hpp:5
int calc_L2(PetscReal &error, Vec &x1, Vec &x2, PetscInt n, NormType type=NORM_2)
calculate the norm of the difference between and vectors and return
Definition: calc_L2.cpp:6