#include <iostream>
#include "Init_Mat.hpp"
#include "Init_Vec.hpp"
#include "Ax_b.hpp"
#include "print.hpp"
#include "set_Mat.hpp"
#include "set_Vec.hpp"
Namespaces | |
SPE | |
Namespace containing all functions and data classes for this solver. | |
Functions | |
PetscInt | SPE::Ax_b (const PetscScalar *const *Ain, Vec &x, const PetscScalar bin[], const PetscInt &n) |
Solves \(x\) in \(Ax=b\) linalg problem using PETSc in parallel Useful for solving small systems of equations, such as finite difference coefficients for given stencils. More... | |
PetscInt | SPE::Ax_b (const Mat &A, Vec &x, const Vec &b, const PetscInt &n) |
Solves \(x\) in \(Ax=b\) linalg problem using PETSc in parallel. More... | |