CGAL 6.2 - CGAL and Solvers

Loading...
Searching...
No Matches
List of all members | Static Public Member Functions
CGAL::Eigen_svd Class Reference
Reference Manual » Linear Systems

`#include <CGAL/Eigen_svd.h>`

## Definition

The class `Eigen_svd` provides an algorithm to solve in the least square sense a linear system with a singular value decomposition using Eigen.

Is model of
  `SvdTraits`

Examples
  Solver_interface/singular_value_decomposition.cpp.

## Static Public Member Functions
static FT | solve (const Matrix &M, Vector &B)
| Solves the system \( MX=B\) (in the least square sense if \( M\) is not square) using a singular value decomposition.The solution is stored in \( B\).

## Types
typedef double | FT
typedef Eigen_vector< FT > | Vector
typedef Eigen_matrix< FT > | Matrix

## Member Function Documentation

## ◆ solve()

static FT CGAL::Eigen_svd::solve | ( | const Matrix & | M,
|  | Vector & | B
| ) |  |
| static

Solves the system \( MX=B\) (in the least square sense if \( M\) is not square) using a singular value decomposition.The solution is stored in \( B\).

Returns
  the condition number of \( M\)