Record TRVector
Unit
Declaration
type generic TRVector<TSpace> = record
Description
Generic column vector of real values (double) with TSpace.N components.
Components are stored in a 1-based array. Use the default array property a[row] to read and write individual components. Concrete types are provided as TR2Vector, TR3Vector, and TR4Vector.
Overview
Nested Types
| Public | TRMatrix = specialize TRMatrix<TSpace>; |
Methods
| Public | function IsNotNull: boolean; |
| Public | function IsNull: boolean; |
| Public | function Norm: double; |
| Public | function Normalize: TRVector; |
| Public | function Reciprocal: TRVector; |
| Public | function SquaredNorm: double; |
| Public | class operator *(const ALeft: double; const ARight: TRVector): TRVector; |
| Public | class operator *(const ALeft: TRMatrix; const ARight: TRVector): TRVector; |
| Public | class operator *(const ALeft: TRVector; const ARight: double): TRVector; |
| Public | class operator *(const ALeft: TRVector; const ARight: TRMatrix): TRVector; |
| Public | class operator *(const ALeft, ARight: TRVector): double; |
| Public | class operator +(const ASelf: TRVector): TRVector; |
| Public | class operator +(const ALeft, ARight: TRVector): TRVector; |
| Public | class operator -(const ASelf: TRVector): TRVector; |
| Public | class operator -(const ALeft, ARight: TRVector): TRVector; |
| Public | class operator /(const ALeft: double; const ARight: TRVector): TRVector; |
| Public | class operator /(const ALeft: TRVector; const ARight: double): TRVector; |
| Public | class operator <>(const ALeft, ARight: TRVector): boolean; |
| Public | class operator =(const ALeft, ARight: TRVector): boolean; |
Properties
| Public | property a[ARow: longint]: double read Get write Put; default; |
Description
Nested Types
| Public | TRMatrix = specialize TRMatrix<TSpace>; |
|
This item has no description. | |
Methods
| Public | function IsNotNull: boolean; |
|
Returns | |
| Public | function IsNull: boolean; |
|
Returns | |
| Public | function Norm: double; |
|
Returns the Euclidean norm (magnitude) of the vector. | |
| Public | function Normalize: TRVector; |
|
Returns the unit vector in the same direction. Each component is divided by Norm. | |
| Public | function Reciprocal: TRVector; |
|
Returns the element-wise reciprocal of the vector. Each component | |
| Public | function SquaredNorm: double; |
|
Returns the squared Euclidean norm of the vector. | |
| Public | class operator *(const ALeft: double; const ARight: TRVector): TRVector; |
|
Returns the product of a real scalar and a vector. Each component is multiplied by | |
| Public | class operator *(const ALeft: TRMatrix; const ARight: TRVector): TRVector; |
|
Returns the product of a square matrix and a column vector: | |
| Public | class operator *(const ALeft: TRVector; const ARight: double): TRVector; |
|
Returns the product of a vector and a real scalar. Each component is multiplied by | |
| Public | class operator *(const ALeft: TRVector; const ARight: TRMatrix): TRVector; |
|
Returns the product of a row vector and a square matrix: | |
| Public | class operator *(const ALeft, ARight: TRVector): double; |
|
Returns the dot product (inner product) of two vectors. | |
| Public | class operator +(const ASelf: TRVector): TRVector; |
|
Unary plus. Returns the vector unchanged. | |
| Public | class operator +(const ALeft, ARight: TRVector): TRVector; |
|
Returns the component-wise sum of two vectors. | |
| Public | class operator -(const ASelf: TRVector): TRVector; |
|
Unary minus. Returns the negation of the vector: each component | |
| Public | class operator -(const ALeft, ARight: TRVector): TRVector; |
|
Returns the component-wise difference of two vectors. | |
| Public | class operator /(const ALeft: double; const ARight: TRVector): TRVector; |
|
Returns the element-wise quotient of a scalar divided by a vector: each component becomes | |
| Public | class operator /(const ALeft: TRVector; const ARight: double): TRVector; |
|
Returns the vector divided by a real scalar. Each component is divided by | |
| Public | class operator <>(const ALeft, ARight: TRVector): boolean; |
|
Returns | |
| Public | class operator =(const ALeft, ARight: TRVector): boolean; |
|
Returns | |
Properties
| Public | property a[ARow: longint]: double read Get write Put; default; |
|
Provides access to individual vector components using a 1-based index. | |
Generated by PasDoc 1.0.4.