48 int Rows = M.Columns - 1;
49 int Columns = M.Rows + 1;
50 string[] Names =
new string[Columns];
51 string[] Names0 = M.ColumnNames;
57 for (Column = 1; Column < Columns; Column++)
58 Names[Column] = Elements0[Column - 1, 0].AssociatedObjectValue?.
ToString();
60 for (Row = 0; Row < Rows; Row++)
61 Elements[Row, 0] =
new StringValue(Names0[Row + 1]);
63 for (Column = 1; Column < Columns; Column++)
65 for (Row = 0; Row < Rows; Row++)
66 Elements[Row, Column] = Elements0[Column - 1, Row + 1];
Class managing a script expression.
Base class for funcions of one matrix variable.
ScriptNode Argument
Function argument.
Base class for all nodes in a parsed script tree.
int Length
Length of expression covered by node.
override string ToString()
int Start
Start position in script expression.
bool HasColumnNames
If the matrix has column names defined.
Pivots a result matrix so columns become rows, and vice versa. It is similar to the matrix transpose ...
Pivot(ScriptNode Argument, int Start, int Length, Expression Expression)
Pivots a result matrix so columns become rows, and vice versa. It is similar to the matrix transpose ...
override IElement EvaluateMatrix(IMatrix Argument, Variables Variables)
Evaluates the function on a matrix argument.
override string FunctionName
Name of the function
override string[] DefaultArgumentNames
Default Argument names
Basic interface for all types of elements.
Basic interface for matrices.