Programming Reference for VirtualLab Fusion
2025.1
|
This class is subject to change. Programs using this class may require changes with a new version of VirtualLab.
This class defines a 3x3 Matrix of complex numbers.
Operators ( \(a+b\), \(a-b\)). Operator ( \(a*b\)) supports \(b\) as complex or Vector3C as well.
More...
Public Member Functions | |
override int | GetHashCode () |
Returns a hash code for this instance. | |
Matrix3x3C () | |
Standard constructor, creates an empty (all zero values) matrix. | |
Matrix3x3C (Complex c) | |
Constructor to get a diagonal matrix having constant value \(c\) on all diagonal elements. | |
Matrix3x3C (Complex m11, Complex m21, Complex m31, Complex m12, Complex m22, Complex m32, Complex m13, Complex m23, Complex m33) | |
Constructor taking nine complex to initialize Matrix3x3C. | |
Matrix3x3C (Matrix3x3C matC) | |
Copy constructor. | |
Matrix3x3C (Vector3C firstCol, Vector3C secondCol, Vector3C thirdCol) | |
Constructor taking three VectorC to initialize Matrix3x3C. | |
Static Public Member Functions | |
static Matrix3x3C | operator* (double b, Matrix3x3C a) |
Multiplies a Matrix3x3C with a scalar. | |
static Matrix3x3C | operator* (Matrix3x3C a, double b) |
Multiplies a Matrix3x3C with a scalar. | |
static Matrix3x3C | operator* (Matrix3x3C a, Matrix3x3C b) |
Multiplies the elements of two Matrix3x3C objects. | |
static Matrix3x3C | operator* (Matrix3x3C a, Matrix3x3D b) |
Multiplies the elements of two 3x3 matrices. | |
static Vector3C | operator* (Matrix3x3C a, Vector3C vec) |
Multiplies a Matrix with an 3-dim. complex Vector (A*Vec) | |
static Matrix3x3C | operator* (Matrix3x3D a, Matrix3x3C b) |
Multiplies the elements of two 3x3 matrices objects. | |
static Matrix3x3C | operator+ (Matrix3x3C a, Matrix3x3C b) |
Adds the elements of two Matrix3x3C objects. | |
static Matrix3x3C | operator- (Matrix3x3C a, Matrix3x3C b) |
Subtracts the elements of two Matrix3x3C objects. | |
static bool | operator== (Matrix3x3C a, Matrix3x3C b) |
Compares two matrices. Two matrices are equal when they are equal in all elements. | |
Public Attributes | |
Complex[] | _elements |
The field in which the complex elements are stored. Note that indices [1..9] are interpreted mathematical. [0] exists but contains no information. Mapping of rows [1..3] and columns [1..3] to one-dimensional index \(i\) is defined by: \(i := row + 3 * (column-1)\). | |
Properties | |
Complex | this[int row, int col] [get, set] |
Gets or sets a certain matrix element. | |
This class is subject to change. Programs using this class may require changes with a new version of VirtualLab.
This class defines a 3x3 Matrix of complex numbers.
Operators ( \(a+b\), \(a-b\)). Operator ( \(a*b\)) supports \(b\) as complex or Vector3C as well.
Matrix3x3C | ( | ) |
Standard constructor, creates an empty (all zero values) matrix.
Matrix3x3C | ( | Complex | c | ) |
Constructor to get a diagonal matrix having constant value \(c\) on all diagonal elements.
c | Value \(c\) used to initialize diagonal elements. |
Matrix3x3C | ( | Matrix3x3C | matC | ) |
Copy constructor.
matC | Matrix3x3C to be copied. |
Matrix3x3C | ( | Vector3C | firstCol, |
Vector3C | secondCol, | ||
Vector3C | thirdCol | ||
) |
Constructor taking three VectorC to initialize Matrix3x3C.
firstCol | First column. |
secondCol | Second column. |
thirdCol | Third column. |
Matrix3x3C | ( | Complex | m11, |
Complex | m21, | ||
Complex | m31, | ||
Complex | m12, | ||
Complex | m22, | ||
Complex | m32, | ||
Complex | m13, | ||
Complex | m23, | ||
Complex | m33 | ||
) |
Constructor taking nine complex to initialize Matrix3x3C.
m11 | First element of first column. |
m21 | Second element of first column. |
m31 | Third element of first column. |
m12 | First element of second column. |
m22 | Second element of second column. |
m32 | Third element of second column. |
m13 | First element of third column. |
m23 | Second element of third column. |
m33 | Third element of third column. |
override int GetHashCode | ( | ) |
Returns a hash code for this instance.
|
static |
Multiplies a Matrix3x3C with a scalar.
b | scalar |
a | Matrix |
|
static |
Multiplies a Matrix3x3C with a scalar.
a | Matrix |
b | scalar |
|
static |
Multiplies the elements of two Matrix3x3C objects.
a | the first matrix |
b | the second matrix |
|
static |
Multiplies the elements of two 3x3 matrices.
a | the first matrix |
b | the second matrix |
|
static |
Multiplies a Matrix with an 3-dim. complex Vector (A*Vec)
a | 3x3-Matrix |
vec | Vector3C |
|
static |
Multiplies the elements of two 3x3 matrices objects.
a | the first matrix |
b | the second matrix |
|
static |
Adds the elements of two Matrix3x3C objects.
a | the first matrix |
b | the second matrix |
|
static |
Subtracts the elements of two Matrix3x3C objects.
a | the first matrix |
b | the second matrix |
|
static |
Compares two matrices. Two matrices are equal when they are equal in all elements.
a | first matrix |
b | second matrix |
|
getset |
Gets or sets a certain matrix element.
The selected matrix element.
row | The zero-based row index. |
col | The zero-based column index. |
System.ArgumentOutOfRangeException | At least one of the two given indices is out of range. |