KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
Namespaces | Typedefs | Functions
polynomial_utilities.h File Reference
#include <array>
#include <vector>
#include "includes/kratos_export_api.h"
Include dependency graph for polynomial_utilities.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Kratos
 REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
 
 Kratos::PolynomialUtilities
 

Typedefs

using Kratos::PolynomialUtilities::PolynomialType = std::vector< double >
 
using Kratos::PolynomialUtilities::IntervalType = std::array< double, 2 >
 

Functions

std::size_t Kratos::PolynomialUtilities::Degree (const PolynomialType &rPolynomial)
 
double Kratos::PolynomialUtilities::Evaluate (const PolynomialType &rPolynomial, double x)
 
PolynomialType Kratos::PolynomialUtilities::Differentiate (const PolynomialType &rPolynomial)
 
PolynomialType Kratos::PolynomialUtilities::Multiply (const PolynomialType &rA, const PolynomialType &rB)
 
void Kratos::PolynomialUtilities::Divide (PolynomialType &rQuotient, PolynomialType &rRemainder, const PolynomialType &rA, const PolynomialType &rB)
 
void Kratos::PolynomialUtilities::IsolateRoots (std::vector< IntervalType > &rRootIntervals, const PolynomialType &rPolynomial, const IntervalType &rRange)
 Define disjoint subintervals of rRange, each containing a single root of rPolynomial. More...
 
double Kratos::PolynomialUtilities::FindRoot (const PolynomialType &rPolynomial, const IntervalType &rRange)
 Find a root of rPolynomial within the interval defined by rRange. More...