Compile
Method with 11 overloads
Compile(AngouriMath.Core.Compilation.IntoLinq.CompilationProtocol,System.Type,System.Collections.Generic.IEnumerable{System.ValueTuple{System.Type,AngouriMath.Entity.Variable}})
Summary
Compiles a given expression into a native lambda
Type parameter "TDelegate"
The type of your delegate to convert to
Parameter "protocol"
This is a protocol, according to which all nodes get compiled. Use this
if you want to use the compilation for types different from those standard
Parameter "returnType"
The type to which the resulting type will be casted
Parameter "typesAndNames"
An IEnumerable of pairs, where the first element is the type of your argument,
and the second one is the corresponding variable from the expression
Returns
Returnes a natively compiled expression of typeRemarks
Into a function that returns Double or Single, a value that is not real is NaN, and
so is every value computed from one, though the expression may be real there:sin(arcsin(x)) at 2.
RefuseNonRealCompilation refuses such an expression instead.
Compile(AngouriMath.Entity.Variable,AngouriMath.Entity.Variable,AngouriMath.Entity.Variable,AngouriMath.Entity.Variable,AngouriMath.Entity.Variable,AngouriMath.Entity.Variable,AngouriMath.Entity.Variable,AngouriMath.Entity.Variable)
Summary
Compiles a given expression into a native lambda. We use the default protocol.
If you plan using non-standard types, consider passing a custom compilation protocol.
Type parameter "TIn1"
The type of the passed argument number 1
Type parameter "TIn2"
The type of the passed argument number 2
Type parameter "TIn3"
The type of the passed argument number 3
Type parameter "TIn4"
The type of the passed argument number 4
Type parameter "TIn5"
The type of the passed argument number 5
Type parameter "TIn6"
The type of the passed argument number 6
Type parameter "TIn7"
The type of the passed argument number 7
Type parameter "TIn8"
The type of the passed argument number 8
Type parameter "TOut"
The return type
Parameter "var1"
The variable corresponding to the function's argument number 1
Parameter "var2"
The variable corresponding to the function's argument number 2
Parameter "var3"
The variable corresponding to the function's argument number 3
Parameter "var4"
The variable corresponding to the function's argument number 4
Parameter "var5"
The variable corresponding to the function's argument number 5
Parameter "var6"
The variable corresponding to the function's argument number 6
Parameter "var7"
The variable corresponding to the function's argument number 7
Parameter "var8"
The variable corresponding to the function's argument number 8
Returns
Returns a natively-compiled delegate
Remarks
Into a function that returns Double or Single, a value that is not real is NaN, and
so is every value computed from one, though the expression may be real there:sin(arcsin(x)) at 2.
RefuseNonRealCompilation refuses such an expression instead.
Compile(AngouriMath.Entity.Variable,AngouriMath.Entity.Variable,AngouriMath.Entity.Variable,AngouriMath.Entity.Variable,AngouriMath.Entity.Variable,AngouriMath.Entity.Variable,AngouriMath.Entity.Variable)
Summary
Compiles a given expression into a native lambda. We use the default protocol.
If you plan using non-standard types, consider passing a custom compilation protocol.
Type parameter "TIn1"
The type of the passed argument number 1
Type parameter "TIn2"
The type of the passed argument number 2
Type parameter "TIn3"
The type of the passed argument number 3
Type parameter "TIn4"
The type of the passed argument number 4
Type parameter "TIn5"
The type of the passed argument number 5
Type parameter "TIn6"
The type of the passed argument number 6
Type parameter "TIn7"
The type of the passed argument number 7
Type parameter "TOut"
The return type
Parameter "var1"
The variable corresponding to the function's argument number 1
Parameter "var2"
The variable corresponding to the function's argument number 2
Parameter "var3"
The variable corresponding to the function's argument number 3
Parameter "var4"
The variable corresponding to the function's argument number 4
Parameter "var5"
The variable corresponding to the function's argument number 5
Parameter "var6"
The variable corresponding to the function's argument number 6
Parameter "var7"
The variable corresponding to the function's argument number 7
Returns
Returns a natively-compiled delegate
Remarks
Into a function that returns Double or Single, a value that is not real is NaN, and
so is every value computed from one, though the expression may be real there:sin(arcsin(x)) at 2.
RefuseNonRealCompilation refuses such an expression instead.
Compile(AngouriMath.Entity.Variable,AngouriMath.Entity.Variable,AngouriMath.Entity.Variable,AngouriMath.Entity.Variable,AngouriMath.Entity.Variable,AngouriMath.Entity.Variable)
Summary
Compiles a given expression into a native lambda. We use the default protocol.
If you plan using non-standard types, consider passing a custom compilation protocol.
Type parameter "TIn1"
The type of the passed argument number 1
Type parameter "TIn2"
The type of the passed argument number 2
Type parameter "TIn3"
The type of the passed argument number 3
Type parameter "TIn4"
The type of the passed argument number 4
Type parameter "TIn5"
The type of the passed argument number 5
Type parameter "TIn6"
The type of the passed argument number 6
Type parameter "TOut"
The return type
Parameter "var1"
The variable corresponding to the function's argument number 1
Parameter "var2"
The variable corresponding to the function's argument number 2
Parameter "var3"
The variable corresponding to the function's argument number 3
Parameter "var4"
The variable corresponding to the function's argument number 4
Parameter "var5"
The variable corresponding to the function's argument number 5
Parameter "var6"
The variable corresponding to the function's argument number 6
Returns
Returns a natively-compiled delegate
Remarks
Into a function that returns Double or Single, a value that is not real is NaN, and
so is every value computed from one, though the expression may be real there:sin(arcsin(x)) at 2.
RefuseNonRealCompilation refuses such an expression instead.
Compile(AngouriMath.Entity.Variable,AngouriMath.Entity.Variable,AngouriMath.Entity.Variable,AngouriMath.Entity.Variable,AngouriMath.Entity.Variable)
Summary
Compiles a given expression into a native lambda. We use the default protocol.
If you plan using non-standard types, consider passing a custom compilation protocol.
Type parameter "TIn1"
The type of the passed argument number 1
Type parameter "TIn2"
The type of the passed argument number 2
Type parameter "TIn3"
The type of the passed argument number 3
Type parameter "TIn4"
The type of the passed argument number 4
Type parameter "TIn5"
The type of the passed argument number 5
Type parameter "TOut"
The return type
Parameter "var1"
The variable corresponding to the function's argument number 1
Parameter "var2"
The variable corresponding to the function's argument number 2
Parameter "var3"
The variable corresponding to the function's argument number 3
Parameter "var4"
The variable corresponding to the function's argument number 4
Parameter "var5"
The variable corresponding to the function's argument number 5
Returns
Returns a natively-compiled delegate
Remarks
Into a function that returns Double or Single, a value that is not real is NaN, and
so is every value computed from one, though the expression may be real there:sin(arcsin(x)) at 2.
RefuseNonRealCompilation refuses such an expression instead.
Compile(AngouriMath.Entity.Variable,AngouriMath.Entity.Variable,AngouriMath.Entity.Variable,AngouriMath.Entity.Variable)
Summary
Compiles a given expression into a native lambda. We use the default protocol.
If you plan using non-standard types, consider passing a custom compilation protocol.
Type parameter "TIn1"
The type of the passed argument number 1
Type parameter "TIn2"
The type of the passed argument number 2
Type parameter "TIn3"
The type of the passed argument number 3
Type parameter "TIn4"
The type of the passed argument number 4
Type parameter "TOut"
The return type
Parameter "var1"
The variable corresponding to the function's argument number 1
Parameter "var2"
The variable corresponding to the function's argument number 2
Parameter "var3"
The variable corresponding to the function's argument number 3
Parameter "var4"
The variable corresponding to the function's argument number 4
Returns
Returns a natively-compiled delegate
Remarks
Into a function that returns Double or Single, a value that is not real is NaN, and
so is every value computed from one, though the expression may be real there:sin(arcsin(x)) at 2.
RefuseNonRealCompilation refuses such an expression instead.
Compile(AngouriMath.Entity.Variable,AngouriMath.Entity.Variable,AngouriMath.Entity.Variable)
Summary
Compiles a given expression into a native lambda. We use the default protocol.
If you plan using non-standard types, consider passing a custom compilation protocol.
Type parameter "TIn1"
The type of the passed argument number 1
Type parameter "TIn2"
The type of the passed argument number 2
Type parameter "TIn3"
The type of the passed argument number 3
Type parameter "TOut"
The return type
Parameter "var1"
The variable corresponding to the function's argument number 1
Parameter "var2"
The variable corresponding to the function's argument number 2
Parameter "var3"
The variable corresponding to the function's argument number 3
Returns
Returns a natively-compiled delegate
Remarks
Into a function that returns Double or Single, a value that is not real is NaN, and
so is every value computed from one, though the expression may be real there:sin(arcsin(x)) at 2.
RefuseNonRealCompilation refuses such an expression instead.
Compile(AngouriMath.Entity.Variable,AngouriMath.Entity.Variable)
Summary
Compiles a given expression into a native lambda. We use the default protocol.
If you plan using non-standard types, consider passing a custom compilation protocol.
Type parameter "TIn1"
The type of the passed argument number 1
Type parameter "TIn2"
The type of the passed argument number 2
Type parameter "TOut"
The return type
Parameter "var1"
The variable corresponding to the function's argument number 1
Parameter "var2"
The variable corresponding to the function's argument number 2
Returns
Returns a natively-compiled delegate
Remarks
Into a function that returns Double or Single, a value that is not real is NaN, and
so is every value computed from one, though the expression may be real there:sin(arcsin(x)) at 2.
RefuseNonRealCompilation refuses such an expression instead.
Compile(AngouriMath.Entity.Variable)
Summary
Compiles a given expression into a native lambda. We use the default protocol.
If you plan using non-standard types, consider passing a custom compilation protocol.
Type parameter "TIn1"
The type of the passed argument number 1
Type parameter "TOut"
The return type
Parameter "var1"
The variable corresponding to the function's argument number 1
Returns
Returns a natively-compiled delegate
Remarks
Into a function that returns Double or Single, a value that is not real is NaN, and
so is every value computed from one, though the expression may be real there:sin(arcsin(x)) at 2.
RefuseNonRealCompilation refuses such an expression instead.
Compile(AngouriMath.Entity.Variable[])
Summary
Compile function so you can evaluate numerical value 15x faster,
than subsitution
Parameter "variables"
List string names of variables in the same order as you will list them when evaluating.
Constants, i.e. pi and e will be ignored.
Returns
Remarks
A statement compiles to its truth value: 1 where it holds, 0 where it does not, and NaN
where it has none, asi > 1 has none. Aprovided or apiecewise is NaN
where no predicate holds, and computes only the case it takes, as evaluation does.
https://github.com/asc-community/AngouriMath/issues/2195
Compile(System.String[])
Summary
Compile function so you can evaluate numerical value 15x faster,
than subsitution
Parameter "variables"
List string names of variables in the same order as you will list them when evaluating.
Constants, i.e. pi and e will be ignored.
Returns
Remarks
A statement compiles to its truth value, as Compile(AngouriMath.Entity.Variable[]) says.
Angouri © 2019-2026 · Project's repo · Site's repo · Octicons · Transparency · 6091 pages online