Geophysical Inversion and Modelling Library
v1.5.2-5-g042d7f36
|
Public Member Functions | |
PolynomialFunction (uint size=0) | |
PolynomialFunction (const Vector< ValueType > &ax) | |
PolynomialFunction (const Vector< ValueType > &ax, const Vector< ValueType > &ay) | |
PolynomialFunction (const Vector< ValueType > &ax, const Vector< ValueType > &ay, const Vector< ValueType > &az) | |
RMatrix & | operator[] (Index k) |
const RMatrix & | operator[] (Index k) const |
RMatrix & | matR (Index k) |
ValueType | operator() (const Pos &xyz) const |
Vector< ValueType > | operator() (const std::vector< Pos > &xyz) const |
Index | size () const |
PolynomialFunction< ValueType > | derive (uint dim) const |
void | fillElementList () |
const std::vector< PolynomialElement< ValueType > > & | elements () const |
void | clear () |
PolynomialFunction< ValueType > & | fill (const Vector< ValueType > &c) |
RVector | coeff () const |
Protected Member Functions | |
void | init_ (const Vector< ValueType > &ax, const Vector< ValueType > &ay, const Vector< ValueType > &az) |
Protected Attributes | |
std::vector< Matrix< ValueType > > | mat_ |
std::vector< PolynomialElement< ValueType > > | elementList_ |
Three dimensional polynomial function. For symbolic calculation and derivation. I.e. f(x,y,z) = 1 + x + y + z + xy + xz + zz ...
|
inline |
Create empty polynomial
|
inline |
Create a polynomial from one dimensional polynomial coefficient array ax:
|
inline |
Create a polynomial function from one dimensional polynomial coefficient array ax and ay: . If u need a composed polynomial use f(x,y,z)*g(x,y,z).
|
inline |
Create a polynomial function from one dimensional polynomial coefficient array ax, ay, az: If u need a composed polynomial use f(x,y,z)*g(x,y,z)*h(x,y,z).
|
inline |
Return all coefficients.
|
inline |
Create new polynomial function for
dim | = 0 |
dim | = 1 |
dim | = 2 |
|
inline |
Fill the parameter coefficients from array. If c.size() == this.size()^3. mat_[k][i][j] = c[k*(size() * size())+ j * size() + i] and return the PolynomialFunction itself. If c.size() is size of elementList_, assume that only the values from elementList_ will be exchanged. Please note, all values of c will be snapped to tolerance.
|
inline |
Return reference to f(x, y, z[k]) polynomial matrix. For python only
|
inline |
Evaluate f(x,y,z)
|
inline |
Evaluate f(x_i,y_i,z_i) for i = [0 .. xyz.size()).
|
inline |
Return f(x, y, z[k]) polynomial matrix
|
inline |
Return f(x, y, z[k]) polynomial matrix
|
inline |
Return the size of this polynomial.
Referenced by GIMLI::operator*(), and GIMLI::PolynomialModelling::startModel().