C# Class MathExpressionsNET.MathFunc

ファイルを表示 Open project: KvanTTT/MathExpressions.NET Class Usage Examples

Public Properties

Property Type Description
DerivativeDelta double
Static bool

Public Methods

Method Description
Compile ( MathFuncAssemblyCecil mathFuncAssembly, string funcName ) : void
ContainsNaN ( ) : bool
EmitArgLoad ( ILProcessor ilProcessor, int argNumber ) : void
EmitLocalLoad ( ILProcessor ilProcessor, int localNumber ) : void
EmitLocalSave ( ILProcessor ilProcessor, int localNumber ) : void
GetDerivative ( ) : MathFunc
GetPrecompilied ( ) : MathFunc

Protected Methods

Method Description
SetParamsAndUnknownFuncsArgNumbers ( MathFuncNode node ) : void

Private Methods

Method Description
AddFuncArgs ( AssemblyDefinition assembly, ILProcessor ilProc ) : void
CalculateValues ( KnownFuncType funcType, IList args ) : CalculatedNode
ContainsNaNHelper ( MathFuncNode node ) : bool
DefineLocals ( ) : void
DefineLocals ( MathFuncNode node ) : void
EmitAddFunc ( MathExpressionsNET.FuncNode funcNode ) : bool
EmitDiffFunc ( MathExpressionsNET.FuncNode funcNode ) : bool
EmitDivFunc ( MathExpressionsNET.FuncNode funcNode ) : bool
EmitExpFunc ( MathExpressionsNET.FuncNode funcNode, bool negExpAbs ) : bool
EmitFunc ( MathExpressionsNET.FuncNode funcNode, bool negExpAbs = false ) : bool
EmitInstruction ( ILProcessor ilProcessor, OpCodeArg instr, bool staticFunc ) : void
EmitKnownFunc ( MathExpressionsNET.FuncNode funcNode ) : bool
EmitMultFunc ( MathExpressionsNET.FuncNode funcNode ) : bool
EmitNegFunc ( MathExpressionsNET.FuncNode funcNode, bool negExpAbs ) : bool
EmitNode ( MathFuncNode node, bool negExpAbs = false ) : void
EmitSubFunc ( MathExpressionsNET.FuncNode funcNode ) : bool
EmitUnknownFunc ( MathExpressionsNET.FuncNode funcNode ) : bool
FoldCalculatedSummands ( MathExpressionsNET.FuncNode sum ) : MathExpressionsNET.FuncNode
GetDerivative ( MathFuncNode node ) : MathFuncNode
GetDerivatives ( MathFuncNode root ) : void
GetFuncDerivative ( MathExpressionsNET.FuncNode funcNode ) : MathFuncNode
InvertLocalVariablesNumbers ( MathFuncNode node ) : void
IsIntersect ( VariableLifetimeCycle cycle1, List cycles ) : bool
IsIntersect ( VariableLifetimeCycle cycle1, VariableLifetimeCycle cycle2 ) : bool
MakeSubstitution ( MathFuncNode node ) : MathFuncNode
MakeSubstitution ( MathFuncNode left, MathFuncNode right, MathExpressionsNET.FuncNode currentFunc ) : MathFuncNode
MultCalculatedFactors ( MathExpressionsNET.FuncNode mult ) : MathExpressionsNET.FuncNode
OptimizeInstructions ( ) : void
OptimizeLocalVariables ( int &localVarNumber ) : void
Precompile ( MathFuncNode parent, MathFuncNode node ) : MathFuncNode
PrecompileAddFunc ( MathExpressionsNET.FuncNode funcNode ) : MathFuncNode
PrecompileExpFunc ( MathFuncNode parent, MathExpressionsNET.FuncNode funcNode ) : MathExpressionsNET.FuncNode
PrecompileMultFunc ( MathExpressionsNET.FuncNode funcNode ) : MathFuncNode

Method Details

Compile() public method

public Compile ( MathFuncAssemblyCecil mathFuncAssembly, string funcName ) : void
mathFuncAssembly MathFuncAssemblyCecil
funcName string
return void

ContainsNaN() public method

public ContainsNaN ( ) : bool
return bool

EmitArgLoad() public static method

public static EmitArgLoad ( ILProcessor ilProcessor, int argNumber ) : void
ilProcessor ILProcessor
argNumber int
return void

EmitLocalLoad() public static method

public static EmitLocalLoad ( ILProcessor ilProcessor, int localNumber ) : void
ilProcessor ILProcessor
localNumber int
return void

EmitLocalSave() public static method

public static EmitLocalSave ( ILProcessor ilProcessor, int localNumber ) : void
ilProcessor ILProcessor
localNumber int
return void

GetDerivative() public method

public GetDerivative ( ) : MathFunc
return MathFunc

GetPrecompilied() public method

public GetPrecompilied ( ) : MathFunc
return MathFunc

SetParamsAndUnknownFuncsArgNumbers() protected method

protected SetParamsAndUnknownFuncsArgNumbers ( MathFuncNode node ) : void
node MathFuncNode
return void

Property Details

DerivativeDelta public_oe property

public double DerivativeDelta
return double

Static public_oe property

public bool Static
return bool