\( \newcommand{\E}{\mathrm{E}} \) \( \newcommand{\A}{\mathrm{A}} \) \( \newcommand{\R}{\mathrm{R}} \) \( \newcommand{\N}{\mathrm{N}} \) \( \newcommand{\Q}{\mathrm{Q}} \) \( \newcommand{\Z}{\mathrm{Z}} \) \( \def\ccSum #1#2#3{ \sum_{#1}^{#2}{#3} } \def\ccProd #1#2#3{ \sum_{#1}^{#2}{#3} }\)
CGAL 4.12.2 - CGAL and Solvers
CGAL::Lapack_svd Class Reference

#include <CGAL/Lapack_svd.h>

Definition

This class is a wrapper to the singular value decomposition algorithm of LAPACK.

Is Model Of:
SvdTraits

Public Types

typedef double FT
 
typedef Lapack_vector Vector
 
typedef Lapack_matrix Matrix
 

Static Public Member Functions

static FT solve (Matrix &M, Vector &B)
 Solves the system \( MX=B\) (in the least square sense if \( M\) is not square) using a singular value decomposition. More...
 

Member Function Documentation

◆ solve()

Lapack_svd::FT CGAL::Lapack_svd::solve ( 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\)