Record TCMatrixQuantity

Unit

Declaration

type generic TCMatrixQuantity<TSpace> = record

Description

Generic square matrix of complex physical quantities (TComplexQuantity) with dimension TSpace.N × TSpace.N.

Each element carries the same physical dimension, stored in FDim. Supports arithmetic operations with dimensional consistency checking. When ADIMOFF is defined, degenerates to the corresponding TCMatrix specialization. Concrete types are provided as TC2MatrixQuantity, TC3MatrixQuantity, and TC4MatrixQuantity.

Overview

Nested Types

Public TCMatrix = specialize TCMatrix<TSpace>;

Methods

Public class operator *(const ALeft, ARight: TCMatrixQuantity): TCMatrixQuantity;
Public class operator *(const ALeft: TCMatrixQuantity; const ARight: TComplexQuantity): TCMatrixQuantity;
Public class operator *(const ALeft: TComplexQuantity; const ARight: TCMatrixQuantity): TCMatrixQuantity;
Public class operator +(const ALeft, ARight: TCMatrixQuantity): TCMatrixQuantity;
Public class operator -(const ALeft, ARight: TCMatrixQuantity): TCMatrixQuantity;
Public class operator /(const ALeft: TCMatrixQuantity; const ARight: TComplexQuantity): TCMatrixQuantity;
Public class operator :=(const AMatrix: TCMatrix): TCMatrixQuantity;
Public class operator <>(const ALeft, ARight: TCMatrixQuantity): boolean;
Public class operator =(const ALeft, ARight: TCMatrixQuantity): boolean;

Properties

Public property a[ARow,ACol: longint]: TComplexQuantity read Get write Put; default;

Description

Nested Types

Public TCMatrix = specialize TCMatrix<TSpace>;

This item has no description.

Methods

Public class operator *(const ALeft, ARight: TCMatrixQuantity): TCMatrixQuantity;

Returns the matrix product of two complex quantity matrices. The resulting dimension is the product of the two dimensions.

Public class operator *(const ALeft: TCMatrixQuantity; const ARight: TComplexQuantity): TCMatrixQuantity;

Returns the product of a complex quantity matrix and a complex quantity scalar. The resulting dimension is the product of the two dimensions.

Public class operator *(const ALeft: TComplexQuantity; const ARight: TCMatrixQuantity): TCMatrixQuantity;

Returns the product of a complex quantity scalar and a complex quantity matrix. The resulting dimension is the product of the two dimensions.

Public class operator +(const ALeft, ARight: TCMatrixQuantity): TCMatrixQuantity;

Returns the element-wise sum of two complex quantity matrices. Both operands must have the same dimension.

Public class operator -(const ALeft, ARight: TCMatrixQuantity): TCMatrixQuantity;

Returns the element-wise difference of two complex quantity matrices. Both operands must have the same dimension.

Public class operator /(const ALeft: TCMatrixQuantity; const ARight: TComplexQuantity): TCMatrixQuantity;

Returns the complex quantity matrix divided by a complex quantity scalar. The resulting dimension is the ratio of the two dimensions.

Public class operator :=(const AMatrix: TCMatrix): TCMatrixQuantity;

Implicit conversion from a complex matrix to a complex quantity matrix. The resulting matrix has a scalar (dimensionless) dimension.

Public class operator <>(const ALeft, ARight: TCMatrixQuantity): boolean;

Returns True if the two matrices differ in dimension or in at least one element.

Public class operator =(const ALeft, ARight: TCMatrixQuantity): boolean;

Returns True if both matrices have the same dimension and all corresponding elements are equal.

Properties

Public property a[ARow,ACol: longint]: TComplexQuantity read Get write Put; default;

Provides access to individual complex quantity matrix elements using 1-based row and column indices. a[1,1] is the top-left element.


Generated by PasDoc 1.0.4.