2using System.Collections.Generic;
35 return this.ConvertToMatrix(
Operand);
55 if (
Operand is IToMatrix ToMatrix)
56 return ToMatrix.ToMatrix();
58 if (
Operand?.AssociatedObjectValue is IToMatrix ToMatrix2)
59 return ToMatrix2.ToMatrix();
72 return this.
op.
PatternMatch(this.ConvertToMatrix(CheckAgainst), AlreadyFound);
Class managing a script expression.
Base class for all unary operators performing operand null checks.
bool NullCheck
If null check is to be used.
readonly bool nullCheck
If null should be returned if operand is null.
Base class for all nodes in a parsed script tree.
int Length
Length of expression covered by node.
virtual PatternMatchResult PatternMatch(IElement CheckAgainst, Dictionary< string, IElement > AlreadyFound)
Performs a pattern match operation.
int Start
Start position in script expression.
ScriptNode Operand
Operand.
static IMatrix Encapsulate(ICollection< IElement > Rows, ScriptNode Node)
Encapsulates the elements of a matrix.
ToMatrix(ScriptNode Operand, bool NullCheck, int Start, int Length, Expression Expression)
To-Matrix operator.
override IElement Evaluate(IElement Operand, Variables Variables)
Evaluates the node, using the variables provided in the Variables collection.
override PatternMatchResult PatternMatch(IElement CheckAgainst, Dictionary< string, IElement > AlreadyFound)
Performs a pattern match operation.
Basic interface for all types of elements.
object AssociatedObjectValue
Associated object value.
ICollection< IElement > ChildElements
An enumeration of child elements. If the element is a scalar, this property will return null.
IElement Encapsulate(ICollection< IElement > Elements, ScriptNode Node)
Encapsulates a set of elements into a similar structure as that provided by the current element.
Basic interface for matrices.
Basic interface for vectors.
Basic interface for all types of sets.
PatternMatchResult
Status result of a pattern matching operation.