hp-FEM
Adaptive hp-FEM suite for nano-optics
Loading...
Searching...
No Matches
Classes | Namespaces | Enumerations | Functions
linear_solver.hpp File Reference
#include <memory>
#include <string>
#include <vector>
#include "hpfem/core/types.hpp"
Include dependency graph for linear_solver.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  hpfem::solvers::LinearSolver
 Factorise once, solve for many right-hand sides. More...
 

Namespaces

namespace  hpfem
 
namespace  hpfem::solvers
 

Enumerations

enum class  hpfem::solvers::DirectSolverBackend { hpfem::solvers::kAuto , hpfem::solvers::kSparseLu , hpfem::solvers::kMumps , hpfem::solvers::kCudss }
 Direct solver backends. More...
 
enum class  hpfem::solvers::Symmetry { hpfem::solvers::kGeneral , hpfem::solvers::kComplexSymmetric , hpfem::solvers::kDetect }
 

Functions

Index hpfem::solvers::gpu_min_unknowns ()
 
bool hpfem::solvers::available (DirectSolverBackend backend) noexcept
 True if the backend can be used in this build (kAuto always).
 
std::vector< DirectSolverBackend > hpfem::solvers::available_backends ()
 All backends usable in this build.
 
std::string hpfem::solvers::backend_name (DirectSolverBackend backend)
 
std::unique_ptr< LinearSolver > hpfem::solvers::make_sparse_lu (Symmetry symmetry=Symmetry::kGeneral)
 
std::unique_ptr< LinearSolver > hpfem::solvers::make_mumps (Symmetry symmetry=Symmetry::kGeneral)
 
std::unique_ptr< LinearSolver > hpfem::solvers::make_cudss (Symmetry symmetry=Symmetry::kGeneral)
 
std::string hpfem::solvers::cudss_status ()
 
std::unique_ptr< LinearSolver > hpfem::solvers::make_direct_solver (DirectSolverBackend backend=DirectSolverBackend::kAuto, Symmetry symmetry=Symmetry::kGeneral)
 
Vector hpfem::solvers::solve_direct (const SparseMatrix &matrix, const Vector &rhs, DirectSolverBackend backend=DirectSolverBackend::kAuto, Symmetry symmetry=Symmetry::kGeneral)
 Factorise and solve in one go.
 
SparseMatrix hpfem::solvers::upper_triangle (const SparseMatrix &matrix)
 Upper triangle (column ≥ row) of a square matrix, compressed; the input of the LDLᵀ paths.
 
Real hpfem::solvers::asymmetry (const SparseMatrix &matrix)
 
Symmetry hpfem::solvers::detect_symmetry (const SparseMatrix &matrix, Real tolerance=1e-12)
 
bool hpfem::solvers::exploit_symmetry (Symmetry symmetry, const SparseMatrix &matrix, const char *backend)
 

Detailed Description

Interface for the direct solvers of the assembled complex systems and the available backends: Eigen's SparseLU (always), MUMPS (HPFEM_ENABLE_MUMPS, sequential complex double build) and cuDSS on the GPU (HPFEM_ENABLE_CUDA, loaded at run time from the separate hpfem_gpu library). See docs/theory/solvers.md.