34 public override string[]
Aliases =>
new string[] {
"diag" };
46 int N = Math.Min(M.Columns, M.Rows);
50 for (i = 0; i < N; i++)
51 Elements[i] = M.GetElement(i, i);
Script runtime exception.
Class managing a script expression.
override string[] Aliases
Optional aliases. If there are no aliases for the function, null is returned.
Diagonal(ScriptNode Argument, int Start, int Length, Expression Expression)
Diagonal(x)
override string FunctionName
Name of the function
override IElement Evaluate(IElement Argument, Variables Variables)
Evaluates the function.
Base class for funcions of one variable.
ScriptNode Argument
Function argument.
Base class for all nodes in a parsed script tree.
int Length
Length of expression covered by node.
int Start
Start position in script expression.
static IElement Encapsulate(Array Elements, bool CanEncapsulateAsMatrix, ScriptNode Node)
Encapsulates the elements of a vector.
Basic interface for all types of elements.
Basic interface for matrices.