chemmisol 0.1
Loading...
Searching...
No Matches
Namespaces | Functions
gauss.h File Reference
#include <iostream>
#include <array>
#include <complex>
#include "../logging.h"
Include dependency graph for gauss.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  chemmisol
 

Functions

template<typename M , typename X >
X chemmisol::gauss::solve (const M &m, const X &y)
 
template<>
double chemmisol::gauss::solve< double, double > (const double &f, const double &y)
 

Detailed Description

Implementations of the Gaussian elimination algorithm.

Function Documentation

◆ solve()

template<typename M , typename X >
X chemmisol::gauss::solve ( const M m,
const X y 
)

Solves m*x=y using the Gaussian elimination algorithm.

Parameters
mMatrix of size n*n.
yMatrix of size n.
Returns
Vector x such that m*x=y.
Template Parameters
MMatrix type.
XVector type.

◆ solve< double, double >()

template<>
double chemmisol::gauss::solve< double, double > ( const double &  f,
const double &  y 
)

Specialisation of the Gaussian elimination for scalar value.

The Gaussiant elimination is useless in this case, but this specialisation is necessary for the implementation of the Newton solver for scalar values.

Parameters
fCoefficient.
yValue.
Returns
Value x such that f*x=y.