CGAL 6.2 - CGAL and Solvers: CGAL::Eigen_solver_traits< Eigen::BiCGSTAB< Eigen_sparse_matrix< double >::EigenType > > Class Reference

CGAL 6.2 - CGAL and Solvers

Loading...
Searching...
No Matches
List of all members | Public Types | Public Member Functions | Protected Attributes
CGAL::Eigen_solver_traits< Eigen::BiCGSTAB< Eigen_sparse_matrix< double >::EigenType > > Class Reference

`#include <CGAL/Eigen_solver_traits.h>`

## Public Types
typedef EigenSolverT | Solver
typedef Scalar | NT
typedef unspecified_type | Matrix
typedef Eigen_vector< Scalar > | Vector

## Public Member Functions
| Eigen_solver_traits ()
| Constructor.
EigenSolverT & | solver ()
| Returns a reference to the internal Eigen solver.
bool | linear_solver (const Matrix &A, const Vector &B, Vector &X, NT &D)
| Solve the sparse linear system \( A \times X = B \).

## Protected Attributes
std::shared_ptr< EigenSolverT > | m_solver_sptr

## Member Function Documentation

## ◆ linear_solver()

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 \).

Precondition
  A.row_dimension() == B.dimension().
  A.column_dimension() == X.dimension().

## ◆ solver()

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.