This struct defines a two-dimensional vector of complex numbers. Operators \(a+b\), \(a-b\) and \(a|b\) (Scalar product) can be used. One operand on \(a*b\), \(a/b\) (applied separate on components) can also be a Complex. Implicit casting from Vector is supported.
More...
|
| double | Abs () |
| | Calculates the absolute value of this VectorC object. The absolute value is defined as the square root of Norm().
|
| |
| double | Norm () |
| | Calculates the norm of the present VectorC object. The norm is defined as (X * Complex.Conjugate(X) + Y * Complex.Conjugate(Y)).Re which is equal to the sum of the norms of the vector components.
|
| |
|
void | Normalize () |
| | Normalizes the present VectorC object.
|
| |
| VectorC | Sqrt () |
| | Calculates the square roots of the components of the present VectorC object and returns a new object.
|
| |
| override string | ToString () |
| | Converts this VectorC to a string using the format (real / imaginary, amplitude / phase and so on) defined in the Global Options is used.
|
| |
| string | ToString (ComplexToStringConversionFormat complexNumberFormat, int numberOfDigits) |
| | Converts this VectorC to a string.
|
| |
| | VectorC (Complex x, Complex y) |
| | Creates a VectorC from two Complex values.
|
| |
| | VectorC (VectorC vec) |
| | Creates a new VectorC object from an existing object.
|
| |
| | VectorC (VectorD Re, VectorD Im) |
| | Creates a VectorC from two VectorD objects. The first VectorD stands for the real part of x- and y-component and the second VectorD stands for the imaginary part of the two components.
|
| |
|
| static implicit | operator VectorC (VectorD vectorD) |
| | Converts a VectorD object into a VectorC object.
|
| |
| static bool | operator!= (VectorC vector1, VectorC vector2) |
| | Compares two VectorC for inequality. The comparison will be done by comparing the values of the two x- and y- components respectively.
|
| |
| static VectorC | operator* (Complex factor, VectorC vector) |
| | Multiplies a VectorC object with a Complex value.
|
| |
| static VectorC | operator* (VectorC a, VectorC b) |
| | Multiplies two VectorC objects.
|
| |
| static VectorC | operator* (VectorC vector, Complex factor) |
| | Multiplies a VectorC object with a Complex value.
|
| |
| static VectorC | operator+ (VectorC a, VectorC b) |
| | Adds two VectorC objects.
|
| |
| static VectorC | operator- (VectorC a, VectorC b) |
| | Subtracts two VectorC objects.
|
| |
| static VectorC | operator/ (Complex number, VectorC vector) |
| | Performs a component wise division of a double value and a VectorC object. The result is defined as new VectorC(number / vector.X, number / vector.Y).
|
| |
| static VectorC | operator/ (VectorC a, VectorC b) |
| | Performs a component wise division of two VectorC objects.
|
| |
| static VectorC | operator/ (VectorC vector, Complex divisor) |
| | Performs a component wise division of a VectorC object and a Complex value.
|
| |
| static bool | operator== (VectorC vector1, VectorC vector2) |
| | Compares two VectorC for equality. The comparison will be done by comparing the values of the two x- and y- components respectively.
|
| |
| static Complex | operator| (VectorC a, VectorC b) |
| | Calculates the scalar product of two VectorC objects. The scalar product is defined as a.X * b.X + a.Y * b.Y.
|
| |
| static VectorC | Parse (string vectorCAsString, ComplexToStringConversionFormat complexNumberFormat, NumberFormatInfo doubleFormat=null) |
| | parse function of the VectorC class
|
| |
This struct defines a two-dimensional vector of complex numbers. Operators \(a+b\), \(a-b\) and \(a|b\) (Scalar product) can be used. One operand on \(a*b\), \(a/b\) (applied separate on components) can also be a Complex. Implicit casting from Vector is supported.