40 : base(new
ScriptNode[] { Vector, SecondDimension },
75 if (SecondDimension <= 0)
79 SecondDimension = V.Dimension;
84 int c = Values.Length;
86 double[,] Elements =
new double[SecondDimension, c];
89 for (i = 0; i < c; i++)
92 for (j = 0; j < SecondDimension; j++)
93 Elements[j, i] = Value;
101 int c = Values.Length;
103 Complex[,] Elements =
new Complex[SecondDimension, c];
106 for (i = 0; i < c; i++)
109 for (j = 0; j < SecondDimension; j++)
110 Elements[j, i] = Value;
118 int c = Values.Length;
120 bool[,] Elements =
new bool[SecondDimension, c];
123 for (i = 0; i < c; i++)
126 for (j = 0; j < SecondDimension; j++)
127 Elements[j, i] = Value;
139 foreach (
IElement Value
in V.VectorElements)
141 for (j = 0; j < SecondDimension; j++)
142 Elements[j, i] = Value;
Script runtime exception.
Class managing a script expression.
static double ToDouble(object Object)
Converts an object to a double value.
Creates a matrix whose rows have elements of the same value, each defined by the corresponding elemen...
Rows(ScriptNode Vector, ScriptNode SecondDimension, int Start, int Length, Expression Expression)
Creates a matrix whose rows have elements of the same value, each defined by the corresponding elemen...
Rows(ScriptNode Vector, int Start, int Length, Expression Expression)
Creates a matrix whose rows have elements of the same value, each defined by the corresponding elemen...
override IElement Evaluate(IElement[] Arguments, Variables Variables)
Evaluates the function.
override string FunctionName
Name of the function
override string[] DefaultArgumentNames
Default Argument names
Base class for multivariate funcions.
ScriptNode[] Arguments
Function arguments.
static readonly ArgumentType[] argumentTypes1Normal
One scalar parameter.
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.
bool[] Values
Vector element values.
Complex[] Values
Vector element values.
double[] Values
Vector element values.
Basic interface for all types of elements.
Basic interface for matrices.
Basic interface for vectors.
ArgumentType
Type of parameter used in a function definition or a lambda definition.