Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
LeftDivideElementWise.cs
4
6{
11 {
21 : base(Left, Right, Start, Length, Expression)
22 {
23 }
24
33 {
34 if (Left.AssociatedObjectValue is double DL && Right.AssociatedObjectValue is double DR)
35 return new DoubleNumber(DR / DL);
36 else
37 return LeftDivide.EvaluateDivision(Left, Right, this);
38 }
39
40 }
41}
Class managing a script expression.
Definition: Expression.cs:41
Base class for binary element-wise operators.
Base class for all nodes in a parsed script tree.
Definition: ScriptNode.cs:69
int Length
Length of expression covered by node.
Definition: ScriptNode.cs:101
int Start
Start position in script expression.
Definition: ScriptNode.cs:92
override IElement EvaluateScalar(IElement Left, IElement Right, Variables Variables)
Evaluates the operator on scalar operands.
LeftDivideElementWise(ScriptNode Left, ScriptNode Right, int Start, int Length, Expression Expression)
Element-wise Left-Division operator.
static IElement EvaluateDivision(IElement Left, IElement Right, ScriptNode Node)
Divides the left operand from the right one.
Definition: LeftDivide.cs:66
Collection of variables.
Definition: Variables.cs:25
Basic interface for all types of elements.
Definition: IElement.cs:21
object AssociatedObjectValue
Associated object value.
Definition: IElement.cs:34