1using System.Collections.Generic;
54 List<IElement> Coordinates =
new List<IElement>();
56 int Columns = M.Columns;
59 for (y = 0; y < Rows; y++)
61 for (x = 0; x < Columns; x++)
63 if (SearchFor.Equals(M.GetElement(x, y)))
71 return new DoubleMatrix(Coordinates.Count / 2, 2, Coordinates);
75 List<double> Indices =
new List<double>();
88 else if (In is
ISet S)
90 List<double> Indices =
new List<double>();
Base class for all types of elements.
virtual ICollection< IElement > ChildElements
An enumeration of child elements. If the element is a scalar, this property will return null.
Script runtime exception.
Class managing a script expression.
Finds elements in matrices or vectors.
override string[] DefaultArgumentNames
Default Argument names
FindElements(ScriptNode SearchFor, ScriptNode In, int Start, int Length, Expression Expression)
Finds elements in matrices or vectors.
override string FunctionName
Name of the function
override IElement Evaluate(IElement[] Arguments, Variables Variables)
Evaluates the function.
Base class for multivariate funcions.
ScriptNode[] Arguments
Function arguments.
Base class for all nodes in a parsed script tree.
int Length
Length of expression covered by node.
Expression Expression
Expression of which the node is a part.
int Start
Start position in script expression.
Basic interface for all types of elements.
Basic interface for matrices.
Basic interface for vectors.
Basic interface for all types of sets.
ArgumentType
Type of parameter used in a function definition or a lambda definition.