IGLib
1.7.2
The IGLib base library for development of numerical, technical and business applications.
|
Represents scalar functions of 2 variables. More...
Public Member Functions | |
double | Value (double x, double y) |
Calculates and returns value of the current 2D scalar function. More... | |
double | Value (vec2 parameters) |
Calculates and returns value of the current 2D scalar function. More... | |
void | Gradient (double x, double y, out double gradx, out double grady) |
Calculates gradient of the current 2D scalar function and returns its components through the specified output variables. More... | |
vec2 | Gradient (vec2 parameters) |
Calculates and returns gradient of the current 2D scalar function. More... | |
void | Hessian (double x, double y, out double dxx, out double dyy, out double dxy) |
Calculates Hessian of the current 2D scalar function and returns its component through the specified output variables. More... | |
mat2 | Hessian (vec2 parameters) |
Calculates and returns Hessian of the current 2D scalar function and returns it (in the form of a mat2 struct). More... | |
Properties | |
bool | ValueDefined [get] |
Whether calculation of function value is defined. More... | |
bool | GradientDefined [get] |
Whether calculation of function ngradient is defined. More... | |
bool | HessianDefined [get] |
Whether calculation of function Hessian is defined. More... | |
Represents scalar functions of 2 variables.
$A Igor Apr09;
double IG.Num.IFunc2d.Value | ( | double | x, |
double | y | ||
) |
Calculates and returns value of the current 2D scalar function.
x | First parameter. |
y | Second parameter. |
Implemented in IG.Gr3d.VtkPlotBase.ExampleFuncDiff, IG.Gr3d.VtkPlotBase.ExampleFunc2dShifted, IG.Gr3d.VtkPlotBase.ExampleFunc2dSquare, IG.Gr3d.VtkPlotBase.ExampleFunc2dLinear, IG.Gr3d.VtkPlotBase.ExampleFunc2dXY, IG.Gr3d.VtkPlotBase.Func2dZero, IG.Gr3d.VtkPlotBase.Func2dY, IG.Gr3d.VtkPlotBase.Func2dX, IG.Num.Func2dBasePlain_ToConsider, IG.Num.Func2dExamples.Func2dXY, IG.Num.Func3d2dBase.ComponentFunction3, IG.Num.Func3d2dBase.ComponentFunction2, IG.Num.Func3d2dBase.ComponentFunction1, IG.Num.Func2dVectorFormBase, IG.Num.Func2dBase, IG.Num.Func2dFromScalarFunction, and IG.Neural.Func2dFromApproximator.
Referenced by IG.Gr3d.VtkPlotBase.ExampleSurfacePlot(), IG.Num.Field< TElement >.MapCoordinates2dPlain(), IG.Num.Field< TElement >.MapCoordinatesPlain(), IG.Num.StructuredField2d< TElement >.MapCoordinatesReferencePlain(), IG.Num.Field< TElement >.MapCoordinatesToScalarsPlain(), IG.Num.Func2dBase.TestFunction(), IG.Num.Func3d2dBase.TestFunction(), IG.Gr3d.VtkPlotBase.ExampleFunc2dShifted.Value(), IG.Gr3d.VtkPlotBase.ExampleFuncDiff.Value(), IG.Gr3d.VtkPlotBase.ExampleValueFunctionDiff21.Value(), and IG.Gr3d.ExampleValueFunctionDiff3D.Value().
double IG.Num.IFunc2d.Value | ( | vec2 | parameters | ) |
Calculates and returns value of the current 2D scalar function.
parameters | Vector of function parameters (in form of the Value) struct. |
Implemented in IG.Num.Func2dBasePlain_ToConsider, IG.Num.Func2dQuadratic, IG.Num.Func2dLinear, IG.Num.Func2dVectorFormBase, and IG.Num.Func2dBase.
void IG.Num.IFunc2d.Gradient | ( | double | x, |
double | y, | ||
out double | gradx, | ||
out double | grady | ||
) |
Calculates gradient of the current 2D scalar function and returns its components through the specified output variables.
x | First parameter. |
y | Second parameter. |
gradx | First component of the returned gradient. |
grady | Second component of the returned gradient. |
Implemented in IG.Gr3d.VtkPlotBase.ExampleFuncDiff, IG.Gr3d.VtkPlotBase.ExampleFunc2dSquare, IG.Gr3d.VtkPlotBase.ExampleFunc2dLinear, IG.Gr3d.VtkPlotBase.ExampleFunc2dXY, IG.Gr3d.VtkPlotBase.Func2dZero, IG.Gr3d.VtkPlotBase.Func2dY, IG.Gr3d.VtkPlotBase.Func2dX, IG.Num.Func2dBasePlain_ToConsider, IG.Num.Func2dExamples.Func2dXY, IG.Num.Func3d2dBase.ComponentFunction3, IG.Num.Func3d2dBase.ComponentFunction2, IG.Num.Func3d2dBase.ComponentFunction1, IG.Num.Func2dVectorFormBase, IG.Num.Func2dBase, IG.Num.Func2dBaseNoGradient, IG.Num.Func2dFromScalarFunction, and IG.Neural.Func2dFromApproximator.
Referenced by IG.Gr3d.VtkPlotBase.ExampleFuncDiff.Gradient(), IG.Num.Func2dBase.TestFunction(), and IG.Num.Func3d2dBase.TestFunction().
Calculates and returns gradient of the current 2D scalar function.
<returnreturns>Gradient of the current 2D scalar function (in form of the vec2 struct)</returnreturns>
Implemented in IG.Num.Func2dBasePlain_ToConsider, IG.Num.Func2dQuadratic, IG.Num.Func2dLinear, IG.Num.Func2dVectorFormBase, and IG.Num.Func2dBase.
void IG.Num.IFunc2d.Hessian | ( | double | x, |
double | y, | ||
out double | dxx, | ||
out double | dyy, | ||
out double | dxy | ||
) |
Calculates Hessian of the current 2D scalar function and returns its component through the specified output variables.
x | First parameter. |
y | Second parameter. |
dxx | Component 1-1 of the calculated Hessian. |
dyy | Component 2-2 of the calculated Hessian. |
dxy | Component 1-2 of the calculated Hessian. |
Implemented in IG.Num.Func2dBasePlain_ToConsider, IG.Num.Func3d2dBase.ComponentFunction3, IG.Num.Func3d2dBase.ComponentFunction2, IG.Num.Func3d2dBase.ComponentFunction1, IG.Num.Func2dVectorFormBase, IG.Num.Func2dBase, IG.Num.Func2dBaseNoGradient, IG.Num.Func2dBaseNoHessian, IG.Num.Func2dFromScalarFunction, and IG.Neural.Func2dFromApproximator.
Calculates and returns Hessian of the current 2D scalar function and returns it (in the form of a mat2 struct).
Implemented in IG.Num.Func2dBasePlain_ToConsider, IG.Num.Func2dQuadratic, IG.Num.Func2dLinear, IG.Num.Func2dVectorFormBase, and IG.Num.Func2dBase.
|
get |
Whether calculation of function value is defined.
Referenced by IG.Num.Func2dBase.TestFunction(), and IG.Num.Func3d2dBase.TestFunction().
|
get |
Whether calculation of function ngradient is defined.
Referenced by IG.Num.Func2dBase.TestFunction(), and IG.Num.Func3d2dBase.TestFunction().
|
get |
Whether calculation of function Hessian is defined.