Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
LeftDivideElementWise.cs
1using System;
5
7{
12 {
22 : base(Left, Right, Start, Length, Expression)
23 {
24 }
25
34 {
35 if (Left.AssociatedObjectValue is double DL && Right.AssociatedObjectValue is double DR)
36 return new DoubleNumber(DR / DL);
37 else
38 return LeftDivide.EvaluateDivision(Left, Right, this);
39 }
40
41 }
42}
Class managing a script expression.
Definition: Expression.cs:39
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:20
object AssociatedObjectValue
Associated object value.
Definition: IElement.cs:33