PolynomialUtils.hpp File Reference

Provides free functions to invert polynomials of degree 1, 2 and 3. More...

#include <cmath>
#include <algorithm>
#include <opm/material/common/MathToolbox.hpp>
Include dependency graph for PolynomialUtils.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Opm
 

Functions

template<class Scalar , class SolContainer >
int Opm::invertLinearPolynomial (SolContainer &sol, Scalar a, Scalar b)
 Invert a linear polynomial analytically. More...
 
template<class Scalar , class SolContainer >
int Opm::invertQuadraticPolynomial (SolContainer &sol, Scalar a, Scalar b, Scalar c)
 Invert a quadratic polynomial analytically. More...
 
template<class Scalar , class SolContainer >
int Opm::invertCubicPolynomial (SolContainer *sol, Scalar a, Scalar b, Scalar c, Scalar d)
 Invert a cubic polynomial analytically. More...
 

Detailed Description

Provides free functions to invert polynomials of degree 1, 2 and 3.