functionhouseholderReflection
Reflect a vector a on a plane with orthogonal vector u
Extends from Modelica.Icons.Function (Icon for functions), Modelica.Icons.ObsoleteModel (Icon for classes that are obsolete and will be removed in later versions).
Information
Syntax
Vectors.Utilities.householderReflection(a,u);
Description
Function "householderReflection(a, u)" performs the reflection of vector
a about a plane orthogonal to vector u (Householder vector).
Algebraically the operation is defined by
withb=Q*a
where Q is an orthogonal matrix, i.e.Q = I - 2*u*u',
Q = inv(Q) = Q'
Example
a = {2, -4, -2, -1};
u = {0.837, -0.478, -0.239, -0.119};
householderReflection(a,u); // = {-5.0, -0.001, -0.0005, -0.0044}
See also
Utilities.householderVectorMatrices.Utilities.householderReflection
Matrices.Utilities.householderSimilarityTransformation
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real[:] | a | Real vector a to be reflected | |
| Real[size(a, 1)] | u | Householder vector |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real[size(u, 1)] | ra | Reflection of a |
Revisions
- 2010/04/30 by Marcus Baur, DLR-RM