CGAL 5.1 - CGAL and Solvers
SparseLinearAlgebraTraits_d Class Reference

#include <Concepts/SparseLinearAlgebraTraits_d.h>

Definition

The concept SparseLinearAlgebraTraits_d is used to solve sparse linear systems A \( \times \) X = B.

Has Models:
CGAL::Eigen_solver_traits<T>

Classes

class  Matrix
 SparseLinearAlgebraTraits_d::Matrix is a concept of a sparse matrix class. More...
 
class  Vector
 SparseLinearAlgebraTraits_d::Vector is a concept of a vector that can be multiplied by a sparse matrix. More...
 

Types

typedef unspecified_type Matrix
 
typedef unspecified_type Vector
 
typedef unspecified_type NT
 

Creation

 SparseLinearAlgebraTraits_d ()
 Default constructor. More...
 

Operations

bool linear_solver (const Matrix &A, const Vector &B, Vector &X, NT &D)
 Solve the sparse linear system \(A \times X = B\). More...
 

Member Typedef Documentation

◆ Matrix

typedef unspecified_type SparseLinearAlgebraTraits_d::Matrix

◆ NT

typedef unspecified_type SparseLinearAlgebraTraits_d::NT

◆ Vector

typedef unspecified_type SparseLinearAlgebraTraits_d::Vector

Constructor & Destructor Documentation

◆ SparseLinearAlgebraTraits_d()

SparseLinearAlgebraTraits_d::SparseLinearAlgebraTraits_d ( )

Default constructor.

Member Function Documentation

◆ linear_solver()

bool SparseLinearAlgebraTraits_d::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()