CGAL 5.5.2 - CGAL and Solvers
|
#include <CGAL/Eigen_solver_traits.h>
Public Types | |
typedef EigenSolverT | Solver |
typedef Scalar | NT |
typedef internal::Get_eigen_matrix< EigenSolverT, NT >::type | Matrix |
typedef Eigen_vector< Scalar > | Vector |
Public Member Functions | |
Eigen_solver_traits () | |
Constructor. | |
EigenSolverT & | solver () |
Returns a reference to the internal Eigen solver. More... | |
bool | linear_solver (const Matrix &A, const Vector &B, Vector &X, NT &D) |
Solve the sparse linear system \( A \times X = B \). More... | |
Protected Attributes | |
std::shared_ptr< EigenSolverT > | m_solver_sptr |
bool CGAL::Eigen_solver_traits< Eigen::BiCGSTAB< Eigen_sparse_matrix< double >::EigenType > >::linear_solver | ( | const Matrix & | A, |
const Vector & | B, | ||
Vector & | X, | ||
NT & | D | ||
) |
Solve the sparse linear system \( A \times X = B \).
Return true
on success. The solution is then \( (1/D) \times X \).
EigenSolverT& CGAL::Eigen_solver_traits< Eigen::BiCGSTAB< Eigen_sparse_matrix< double >::EigenType > >::solver | ( | ) |
Returns a reference to the internal Eigen solver.
This function can be used for example to set specific parameters of the solver.