All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

AdvancedMathematics Class CATMathPolynomXY

Mathematics.CATCGMVirtual
  |
  +---AdvancedMathematics.CATMathFunctionGeneral
    |
    +---AdvancedMathematics.CATMathFunctionXY
      |
      +---AdvancedMathematics.CATMathFoundationXY
        |
        +---CATMathPolynomXY
 

Usage: you must use this class as is. You should never derive it.


public class CATMathPolynomXY

Class defining the real polynom of two variables.


Constructor and Destructor Index


o CATMathPolynomXY(CATLONG32,CATLONG32,double**,double,double)
Constructs a CATMathPolynomXY from a double entry array.
o CATMathPolynomXY(CATLONG32,CATLONG32,double*,double,double)
Constructs a CATMathPolynomXY from an array.
o CATMathPolynomXY(CATMathPolynomXY&)
Copy constructor.
o ~CATMathPolynomXY()

Method Index


o Eval(CATMathIntervalND&,CATLONG32*,CATMathOption,double*,double*,double*,double*,double*,double*)
Simultaneously evaluates this CATMathPolynomXY or/and its partial derivatives on a regular grid of points.
o Eval(double&,double&)
Evaluates this CATMathPolynomXY.
o Eval(double,double,CATMathOption,double*,double*,double*,double*,double*,double*)
Simultaneously evaluates this CATMathPolynomXY or/and its partial derivatives.
o EvalAllThirdDerivs(double,double,double&,double&,double&,double&)
Evaluates simultaneously all third partial derivatives of this CATMathPolynomXY .
o EvalFirstDerivX(double&,double&)
Evaluates the first partial derivative with respect to the first variable of this CATMathPolynomXY .
o EvalFirstDerivY(double&,double&)
Evaluates the first partial derivative with respect to the second variable of this CATMathPolynomXY .
o EvalSecondDerivX2(double&,double&)
Evaluates the second partial derivative of this CATMathPolynomXY .
o EvalSecondDerivXY(double&,double&)
Evaluates the second partial derivative of this CATMathPolynomXY .
o EvalSecondDerivY2(double&,double&)
Evaluates the second partial derivative of this CATMathPolynomXY .
o EvalThirdDerivX2Y(double&,double&)
Evaluates the third partial derivative of this CATMathPolynomXY .
o EvalThirdDerivX3(double&,double&)
Evaluates the third partial derivative of this CATMathPolynomXY .
o EvalThirdDerivXY2(double&,double&)
Evaluates the third partial derivative of this CATMathPolynomXY .
o EvalThirdDerivY3(double&,double&)
Evaluates the third partial derivative of this CATMathPolynomXY .
o EvalUpToThirdDeriv(double,double,double&,double&,double&,double&,double&,double&,double&,double&,double&,double&)
Evaluates simultaneously the value, and all the first, second and third partial derivatives of this CATMathPolynomXY .
o GetCoefficients()
Returns the coefficients of this CATMathPolynomXY.
o GetDegreeX()
Returns the degree in the first variable.
o GetDegreeY()
Returns the degree in the second variable.
o IsA()
Returns the class name of this CATMathPolynomXY.
o IsAKindOf(CATMathClassId)
Tests whether this CATMathPolynomXY derives from a class (given by its name).
o IsOption(CATMathOption)
Tests whether an evaluator is available for this CATMathPolynomXY.
o SetCoefficients(CATLONG32,CATLONG32,double*)
Modifies the coefficients of this CATMathPolynomXY.
o SetCoefficients(CATLONG32,CATLONG32,double**)
Modifies the coefficients of this CATMathPolynomXY.

Constructor and Destructor


o CATMathPolynomXY
public CATMathPolynomXY( const CATLONG32 iDegX,
const CATLONG32 iDegY,
double** iCoeff,
const double iShiftX=0.,
const double iShiftY=0.)
Constructs a CATMathPolynomXY from a double entry array.
Parameters:
iDegX
The degree in the first variable
iDegY
The degree in the second variable.
iCoeff
The double entry array such that:
pol=Sum_{i=0..iDegX, j=0..iDegY} iCoeff[i][j] X^i Y^j.
iShiftX,
iShiftY Internal use.
o CATMathPolynomXY
public CATMathPolynomXY( const CATLONG32 iDegX= 0,
const CATLONG32 iDegY= 0,
const double* iCoeff= 0,
const double iShiftX=0.,
const double iShiftY=0.)
Constructs a CATMathPolynomXY from an array.
Parameters:
iDegX
The degree in the first variable
iDegY
The degree in the second variable.
iCoeff
The array such that:
pol=Sum_{i=0..iDegX, j=0..iDegY} iCoeff[i*(degY+1)+j] X^i Y^j.
o CATMathPolynomXY
public CATMathPolynomXY( const CATMathPolynomXY& iToCopy)
Copy constructor.
o ~CATMathPolynomXY
public virtual ~CATMathPolynomXY()

Methods


o Eval
public virtual void Eval( const CATMathIntervalND& iDomain,
const CATLONG32* NbPoints,
const CATMathOption iOptions,
double* ioF,
double* ioFx=0,
double* ioFy=0,
double* ioFx2=0,
double* ioFxy=0,
double* ioFy2=0) const
Simultaneously evaluates this CATMathPolynomXY or/and its partial derivatives on a regular grid of points.
Precondition: The output arrays must have been previously allocated if you asked for the corresponding evaluation. oF[Ny*i+j] contains the evaluation of this at (x_i,y_j).
Parameters:
iDomain
The 2D-interval of definition of the grid [xStart,xEnd] x [yStart,yEnd].
iNbPoints
The array of 2 longs, stating the number of points of the grid in each direction x and y. If iNbPoints[0]=1 and iNbPoints[1]=1, there is only one evaluation made at the parameter (xStart,xStart)
iOptions
The type of evalution.
Legal values:
OptionEval
evaluation of the function
OptionEvalFirstDeriv
evaluation of the first derivatives of the function
OptionEvalSecondDeriv
evaluation of the second derivatives of the function
ioF
The array of the evaluations of this CATMathPolynomXY.
ioFx
The array of the first partial derivative of this CATMathPolynomXY at the grid points.
ioFy
The array of the first partial derivative of this CATMathPolynomXY at the grid points.
ioFx2
The array of the second partial derivative of this CATMathPolynomXY at the grid points.
ioFxy
The array of the second partial derivative of this CATMathPolynomXY at the grid points.
ioFy2
The array of the second partial derivative of this CATMathPolynomXY at the grid points.
o Eval
public virtual double Eval( const double& iX,
const double& iY) const
Evaluates this CATMathPolynomXY.
Parameters:
iX
The value of the first variable where this CATMathPolynomXY is evaluated.
iY
The value of the second variable where this CATMathPolynomXY is evaluated.
Returns:
The result of the evaluation.
o Eval
public virtual void Eval( const double iX,
const double iY,
const CATMathOption iOptions,
double* ioF,
double* ioFx=0,
double* ioFy=0,
double* ioFx2=0,
double* ioFxy=0,
double* ioFy2=0) const
Simultaneously evaluates this CATMathPolynomXY or/and its partial derivatives.
Precondition:The output arrays must have been previously allocated if you asked for the corresponding evaluation.
Parameters:
iOptions
The type of evalution.
Legal values:
OptionEval
evaluation of the function
OptionEvalFirstDeriv
evaluation of the first derivatives of the function
OptionEvalSecondDeriv
evaluation of the second derivatives of the function
ioF
A pointer to the value of this CATMathPolynomXY.
ioFx
A pointer to the first partial derivative of this CATMathPolynomXY.
ioFy
A pointer to the first partial derivative of this CATMathPolynomXY.
ioFx2
A pointer to the second partial derivative of this CATMathPolynomXY.
ioFxy
A pointer to the second partial derivative of this CATMathPolynomXY.
ioFy2
A pointer to the second partial derivative of this CATMathPolynomXY.
o EvalAllThirdDerivs
public virtual void EvalAllThirdDerivs( const double iX,
const double iY,
double& oFx3,
double& oFx2y,
double& oFxy2,
double& oFy3) const
Evaluates simultaneously all third partial derivatives of this CATMathPolynomXY .
Parameters:
iX
The value of the first variable where this CATMathPolynomXY is evaluated.
iY
The value of the second variable where this CATMathPolynomXY is evaluated.
oFx3
The value of the third partial derivative of this CATMathPolynomXY.
oFx2y
The value of the third partial derivative of this CATMathPolynomXY.
oFxy2
The value of the third partial derivative of this CATMathPolynomXY.
oFy3
The value of the third partial derivative of this CATMathPolynomXY.
o EvalFirstDerivX
public virtual double EvalFirstDerivX( const double& iX,
const double& iY) const
Evaluates the first partial derivative with respect to the first variable of this CATMathPolynomXY .
Parameters:
iX
The value of the first variable where this CATMathPolynomXY is evaluated.
iY
The value of the second variable where this CATMathPolynomXY is evaluated.
Returns:
The value of the first partial derivative with respect to the first variable.
o EvalFirstDerivY
public virtual double EvalFirstDerivY( const double& iX,
const double& iY) const
Evaluates the first partial derivative with respect to the second variable of this CATMathPolynomXY .
Parameters:
iX
The value of the first variable where this CATMathPolynomXY is evaluated.
iY
The value of the second variable where this CATMathPolynomXY is evaluated.
Returns:
The value of the first partial derivative with respect to the second variable.
o EvalSecondDerivX2
public virtual double EvalSecondDerivX2( const double& iX,
const double& iY) const
Evaluates the second partial derivative of this CATMathPolynomXY .
Parameters:
iX
The value of the first variable where this CATMathPolynomXY is evaluated.
iY
The value of the second variable where this CATMathPolynomXY is evaluated.
Returns:
The value of the second partial derivative.
o EvalSecondDerivXY
public virtual double EvalSecondDerivXY( const double& iX,
const double& iY) const
Evaluates the second partial derivative of this CATMathPolynomXY .
Parameters:
iX
The value of the first variable where this CATMathPolynomXY is evaluated.
iY
The value of the second variable where this CATMathPolynomXY is evaluated.
Returns:
The value of the second partial derivative.
o EvalSecondDerivY2
public virtual double EvalSecondDerivY2( const double& iX,
const double& iY) const
Evaluates the second partial derivative of this CATMathPolynomXY .
Parameters:
iX
The value of the first variable where this CATMathPolynomXY is evaluated.
iY
The value of the second variable where this CATMathPolynomXY is evaluated.
Returns:
The value of the second partial derivative.
o EvalThirdDerivX2Y
public virtual double EvalThirdDerivX2Y( const double& iX,
const double& iY) const
Evaluates the third partial derivative of this CATMathPolynomXY .
Parameters:
iX
The value of the first variable where this CATMathPolynomXY is evaluated.
iY
The value of the second variable where this CATMathPolynomXY is evaluated.
Returns:
The value of the third partial derivative.
o EvalThirdDerivX3
public virtual double EvalThirdDerivX3( const double& iX,
const double& iY) const
Evaluates the third partial derivative of this CATMathPolynomXY .
Parameters:
iX
The value of the first variable where this CATMathPolynomXY is evaluated.
iY
The value of the second variable where this CATMathPolynomXY is evaluated.
Returns:
The value of the third partial derivative.
o EvalThirdDerivXY2
public virtual double EvalThirdDerivXY2( const double& iX,
const double& iY) const
Evaluates the third partial derivative of this CATMathPolynomXY .
Parameters:
iX
The value of the first variable where this CATMathPolynomXY is evaluated.
iY
The value of the second variable where this CATMathPolynomXY is evaluated.
Returns:
The value of the third partial derivative.
o EvalThirdDerivY3
public virtual double EvalThirdDerivY3( const double& iX,
const double& iY) const
Evaluates the third partial derivative of this CATMathPolynomXY .
Parameters:
iX
The value of the first variable where this CATMathPolynomXY is evaluated.
iY
The value of the second variable where this CATMathPolynomXY is evaluated.
Returns:
The value of the third partial derivative.
o EvalUpToThirdDeriv
public virtual void EvalUpToThirdDeriv( const double iX,
const double iY,
double& oF,
double& oFx,
double& oFy,
double& oFx2,
double& oFxy,
double& oFy2,
double& oFx3,
double& oFx2y,
double& oFxy2,
double& oFy3) const
Evaluates simultaneously the value, and all the first, second and third partial derivatives of this CATMathPolynomXY .
Parameters:
iX
The value of the first variable where this CATMathPolynomXY is evaluated.
iY
The value of the second variable where this CATMathPolynomXY is evaluated.
oF
The value of this CATMathPolynomXY.
oFx
The value of the first partial derivative of this CATMathPolynomXY.
oFy
The value of the first partial derivative of this CATMathPolynomXY.
oFx2
The value of the second partial derivative of this CATMathPolynomXY.
oFxy
The value of the second partial derivative of this CATMathPolynomXY.
oFy2
The value of the second partial derivative of this CATMathPolynomXY.
oFx3
The value of the third partial derivative of this CATMathPolynomXY.
oFx2y
The value of the third partial derivative of this CATMathPolynomXY.
oFxy2
The value of the third partial derivative of this CATMathPolynomXY.
oFy3
The value of the third partial derivative of this CATMathPolynomXY.
o GetCoefficients
public const double * GetCoefficients()const
Returns the coefficients of this CATMathPolynomXY.
Returns:
The array of the coefficients. As part of this, it must not be deallocated.
o GetDegreeX
public CATLONG32 GetDegreeX()const
Returns the degree in the first variable.
Returns:
The degree.
o GetDegreeY
public CATLONG32 GetDegreeY()const
Returns the degree in the second variable.
Returns:
The degree.
o IsA
public CATMathClassId IsA()const
Returns the class name of this CATMathPolynomXY.
Returns:
A pointer to the name CATMathPolynomX.
o IsAKindOf
public CATBoolean IsAKindOf( const CATMathClassId iClassId) const
Tests whether this CATMathPolynomXY derives from a class (given by its name).
Parameters:
iClassId
The name of the class.
Returns:
The result of the test.
Legal values: TRUE if this CATMathPolynomXY is a kind of iClassId, FALSE otherwise.
o IsOption
public CATBoolean IsOption( const CATMathOption iOption) const
Tests whether an evaluator is available for this CATMathPolynomXY.
Parameters:
iOption
The type of evalution.
Legal values:
OptionEval
evaluation of the function
OptionEvalFirstDeriv
evaluation of the first derivative of the function
OptionEvalSecondDeriv
evaluation of the second derivative of the function
OptionEvalThirdDeriv
evaluation of the third derivative of the function
Returns:
The result of the test.
Legal values: TRUE if the evaluation is available for this CATMathPolynomXY, FALSE otherwise.
o SetCoefficients
public void SetCoefficients( const CATLONG32 iDegX= 0,
const CATLONG32 iDegY= 0,
const double* iCoef= 0)
Modifies the coefficients of this CATMathPolynomXY.
Parameters:
iDegX
The degree in the first variable
iDegY
The degree in the second variable.
iCoef
The array such that:
pol=Sum_{i=0..iDegX, j=0..iDegY} iCoef[i*(degY+1)+j] X^i Y^j.
o SetCoefficients
public void SetCoefficients( const CATLONG32 iDegX,
const CATLONG32 iDegY,
double** iCoef)
Modifies the coefficients of this CATMathPolynomXY.
Parameters:
iDegX
The degree in the first variable
iDegY
The degree in the second variable.
iCoef
The double entry array such that:
pol=Sum_{i=0..iDegX, j=0..iDegY} iCoeff[i][j] X^i Y^j.

This object is included in the file: CATMathPolynomXY.h
If needed, your Imakefile.mk should include the module: CATAdvancedMathematics

Copyright © 2003, Dassault Systèmes. All rights reserved.