Record TC4VectorHelper

Unit

Declaration

type TC4VectorHelper = record helper for TC4Vector

Description

Record helper for TC4Vector providing additional operations specific to 4-component complex vectors.

Overview

Methods

Public function Conjugate: TC4Vector;
Public function Dot(const AVector: TC4Vector): TComplex;
Public function NullVector: TC4Vector;
Public function ToString: string;
Public function ToString(APrecision, ADigits: integer): string;

Description

Methods

Public function Conjugate: TC4Vector;

Returns the element-wise complex conjugate of the vector.

Public function Dot(const AVector: TC4Vector): TComplex;

Returns the Hermitian inner product of two complex vectors. 〈u,v〉 = Σ conj(uᵢ)·vᵢ Unlike the "*" operator, this uses the conjugate of the left operand.

Parameters
AVector
The right-hand operand.
Public function NullVector: TC4Vector;

Returns the zero vector of ℂ⁴. All 4 components are set to TComplex(Re=0, Im=0).

Public function ToString: string;

Converts the vector to its default string representation.

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

Converts the vector to a formatted string with controlled precision.

Parameters
APrecision
Number of significant digits.
ADigits
Minimum number of digits in the output.

Generated by PasDoc 1.0.4.