|
Programming Reference for VirtualLab Fusion
2022.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 | |
| Complex | Determinant () |
| Calculates the determinant of current Matrix3x3. More... | |
| override bool | Equals (object matrix) |
| Compares two matrices for equality. More... | |
| Vector3C | GetCol (int index) |
| Returns specified column current Matrix3x3 as VectorC. More... | |
| override int | GetHashCode () |
| Returns a hash code for this instance. More... | |
| Matrix3x3C | GetInverse () |
| Calculates the inverse Matrix3x3 of current one. More... | |
| Vector3C | GetRow (int index) |
| Returns specified row current Matrix3x3 as VectorC. More... | |
| Matrix3x3C | GetTransposed () |
| Returns transposed Matrix3x3 of current one. More... | |
| bool | IsIdentity () |
| Checks whether the matrix is the identity matrix. More... | |
| bool | IsIdentityNumericalChecks () |
| Checks whether the matrix is the identity matrix. More... | |
| Matrix3x3C () | |
| Standard constructor, creates an empty (all zero values) matrix. More... | |
| Matrix3x3C (Complex c) | |
| Constructor to get a diagonal matrix having constant value \(c\) on all diagonal elements. More... | |
| 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. More... | |
| Matrix3x3C (Matrix3x3C matC) | |
| Copy constructor. More... | |
| Matrix3x3C (Vector3C firstCol, Vector3C secondCol, Vector3C thirdCol) | |
| Constructor taking three VectorC to initialize Matrix3x3C. More... | |
| override string | ToString () |
| Returns an output string representing current Matrix3x3. More... | |
Static Public Member Functions | |
| static Matrix3x3C | InverseMatrix (Matrix3x3C mat) |
| Calculates inverse current Matrix3x3C of the given one. More... | |
| static | operator CenterSpace.NMath.Core.DoubleComplexMatrix (Matrix3x3C matrix) |
| Explicit cast operator definition for casting VirtualLabAPI Matrix3x3C to CenterSpace.NMath.Core.DoubleComplexMatrix. More... | |
| static bool | operator!= (Matrix3x3C a, Matrix3x3C b) |
| Checks to matrices for inequality. More... | |
| static Matrix3x3C | operator* (double b, Matrix3x3C a) |
| Multiplies a Matrix3x3C with a scalar. More... | |
| static Matrix3x3C | operator* (Matrix3x3C a, double b) |
| Multiplies a Matrix3x3C with a scalar. More... | |
| static Matrix3x3C | operator* (Matrix3x3C a, Matrix3x3C b) |
| Multiplies the elements of two Matrix3x3C objects. More... | |
| static Matrix3x3C | operator* (Matrix3x3C a, Matrix3x3D b) |
| Multiplies the elements of two 3x3 matrices. More... | |
| static Vector3C | operator* (Matrix3x3C a, Vector3C vec) |
| Multiplies a Matrix with an 3-dim. complex Vector (A*Vec) More... | |
| static Matrix3x3C | operator* (Matrix3x3D a, Matrix3x3C b) |
| Multiplies the elements of two 3x3 matrices objects. More... | |
| static Matrix3x3C | operator+ (Matrix3x3C a, Matrix3x3C b) |
| Adds the elements of two Matrix3x3C objects. More... | |
| static Matrix3x3C | operator- (Matrix3x3C a, Matrix3x3C b) |
| Subtracts the elements of two Matrix3x3C objects. More... | |
| static bool | operator== (Matrix3x3C a, Matrix3x3C b) |
| Compares two matrices. Two matrices are equal when they are equal in all elements. More... | |
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. More... | |
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. |
| Complex Determinant | ( | ) |
Calculates the determinant of current Matrix3x3.
| override bool Equals | ( | object | matrix | ) |
Compares two matrices for equality.
| matrix | matrix to compare with |
True if the two matrices store the same values.| Vector3C GetCol | ( | int | index | ) |
Returns specified column current Matrix3x3 as VectorC.
| index | Column to return (index is one-based!). |
| override int GetHashCode | ( | ) |
Returns a hash code for this instance.
| Matrix3x3C GetInverse | ( | ) |
Calculates the inverse Matrix3x3 of current one.
| Vector3C GetRow | ( | int | index | ) |
Returns specified row current Matrix3x3 as VectorC.
| index | Row to return (index is one-based!). |
| Matrix3x3C GetTransposed | ( | ) |
Returns transposed Matrix3x3 of current one.
|
static |
Calculates inverse current Matrix3x3C of the given one.
| mat | Matrix3x3C to invert. |
| bool IsIdentity | ( | ) |
Checks whether the matrix is the identity matrix.
| bool IsIdentityNumericalChecks | ( | ) |
Checks whether the matrix is the identity matrix.
|
explicitstatic |
Explicit cast operator definition for casting VirtualLabAPI Matrix3x3C to CenterSpace.NMath.Core.DoubleComplexMatrix.
| matrix | The VirtualLabAPI Matrix3x3C to be casted to a CenterSpace.NMath.Core.DoubleComplexMatrix. |
|
static |
Checks to matrices for inequality.
| a | first matrix |
| b | second matrix |
|
static |
|
static |
|
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 |
|
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 |
| override string ToString | ( | ) |
Returns an output string representing current Matrix3x3.
|
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. |