Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ConjugateTranspose.cs
1using System;
4
6{
11 {
21 {
22 }
23
31 {
32 if (Operand is IMatrix Matrix)
33 return Matrix.ConjugateTranspose();
34
35 if (Operand is IVector Vector)
36 return MatrixDefinition.Encapsulate(Vector.VectorElements, 1, Vector.Dimension, this).ConjugateTranspose();
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.
ConjugateTranspose(ScriptNode Operand, int Start, int Length, Expression Expression)
Conjugate Transpose operator.
override IElement Evaluate(IElement Operand, Variables Variables)
Evaluates the node, using the variables provided in the Variables collection.
static IMatrix Encapsulate(ICollection< IElement > Rows, ScriptNode Node)
Encapsulates the elements of a matrix.
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
IMatrix ConjugateTranspose()
Returns a conjugate transposed matrix.
Basic interface for vectors.
Definition: IVector.cs:9