Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Transpose.cs
1using System;
4
6{
10 public class Transpose : UnaryOperator
11 {
21 {
22 }
23
31 {
32 if (Operand is IMatrix Matrix)
33 return Matrix.Transpose();
34
35 if (Operand is IVector Vector)
36 return MatrixDefinition.Encapsulate(Vector.VectorElements, Vector.Dimension, 1, this);
37
38 return Operand;
39 }
40 }
41}
Class managing a script expression.
Definition: Expression.cs:39
Base class for all nodes in a parsed script tree.
Definition: ScriptNode.cs:69
int Length
Length of expression covered by node.
Definition: ScriptNode.cs:101
int Start
Start position in script expression.
Definition: ScriptNode.cs:92
Base class for all unary operators.
static IMatrix Encapsulate(ICollection< IElement > Rows, ScriptNode Node)
Encapsulates the elements of a matrix.
override IElement Evaluate(IElement Operand, Variables Variables)
Evaluates the node, using the variables provided in the Variables collection.
Definition: Transpose.cs:30
Transpose(ScriptNode Operand, int Start, int Length, Expression Expression)
Transpose operator.
Definition: Transpose.cs:19
Collection of variables.
Definition: Variables.cs:25
Basic interface for all types of elements.
Definition: IElement.cs:20
Basic interface for matrices.
Definition: IMatrix.cs:9
Basic interface for vectors.
Definition: IVector.cs:9