Record TC2MatrixHelper

Unit

Declaration

type TC2MatrixHelper = record helper for TC2Matrix

Description

Record helper for TC2Matrix providing additional operations specific to 2×2 complex matrices.

Overview

Methods

Public function Conjugate: TC2Matrix;
Public function Determinant: TComplex;
Public function Diagonalize(const AEigenValues: TC2ArrayOfComplex): TC2Matrix;
Public function Eigenvalues: TC2ArrayOfComplex;
Public function Eigenvectors(const AEigenValues: TC2ArrayOfComplex): TC2ArrayOfVector;
Public function Identity: TC2Matrix;
Public function NullMatrix: TC2Matrix;
Public function Reciprocal(const ADeterminant: TComplex): TC2Matrix;
Public function ToString: string;
Public function ToString(APrecision, ADigits: integer): string;
Public function Transpose: TC2Matrix;
Public function TransposeConjugate: TC2Matrix;

Description

Methods

Public function Conjugate: TC2Matrix;

Returns the element-wise complex conjugate of the matrix.

Public function Determinant: TComplex;

Returns the determinant of the 2×2 complex matrix: det(A) = a₁₁·a₂₂ - a₁₂·a₂₁.

Public function Diagonalize(const AEigenValues: TC2ArrayOfComplex): TC2Matrix;

Returns the diagonal matrix built from the given eigenvalues.

Parameters
AEigenValues
The eigenvalues, typically computed via Eigenvalues.
Public function Eigenvalues: TC2ArrayOfComplex;

Returns the eigenvalues of the 2×2 complex matrix as a fixed-size array.

Public function Eigenvectors(const AEigenValues: TC2ArrayOfComplex): TC2ArrayOfVector;

Returns the eigenvectors of the 2×2 complex matrix corresponding to the given eigenvalues.

Parameters
AEigenValues
The eigenvalues, computed via Eigenvalues.
Public function Identity: TC2Matrix;

Returns the 2×2 identity matrix over . Diagonal elements are TComplex(Re=1, Im=0); all off-diagonal elements are zero. Satisfies I·A = A·I = A for any conforming 2×2 complex matrix A.

Public function NullMatrix: TC2Matrix;

Returns the 2×2 zero matrix over . All elements are set to TComplex(Re=0, Im=0).

Public function Reciprocal(const ADeterminant: TComplex): TC2Matrix;

Returns the inverse of the matrix given its precomputed determinant.

Parameters
ADeterminant
The determinant of the matrix, computed via Determinant.
Public function ToString: string;

Converts the matrix to its default string representation.

Public function ToString(APrecision, ADigits: integer): string;

Converts the matrix to a formatted string with controlled precision.

Parameters
APrecision
Number of significant digits.
ADigits
Minimum number of digits in the output.
Public function Transpose: TC2Matrix;

Returns the transpose of the 2×2 complex matrix.

Public function TransposeConjugate: TC2Matrix;

Returns the conjugate transpose (Hermitian adjoint) of the matrix: A† = (Aᵀ)"*". Each element [i,j] of the result is the conjugate of [j,i] of the original.


Generated by PasDoc 1.0.4.