Purpose
=======
Given two column vectors X and Y, let
A = ( X Y ).
The subroutine first computes the QR factorization of A = Q*R,
and then computes the SVD of the 2-by-2 upper triangular matrix R.
The smaller singular value of R is returned in SSMIN, which is used
as the measurement of the linear dependency of the vectors X and Y.
Namespace: DotNumerics.LinearAlgebra.CSLapackAssembly: DWSIM.MathOps.DotNumerics (in DWSIM.MathOps.DotNumerics.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public void Run(
int N,
ref double[] X,
int offset_x,
int INCX,
ref double[] Y,
int offset_y,
int INCY,
ref double SSMIN
)
Public Sub Run (
N As Integer,
ByRef X As Double(),
offset_x As Integer,
INCX As Integer,
ByRef Y As Double(),
offset_y As Integer,
INCY As Integer,
ByRef SSMIN As Double
)
Request Example
View SourceParameters
- N Int32
-
(input) INTEGER
The length of the vectors X and Y.
- X Double
-
(input/output) DOUBLE PRECISION array,
dimension (1+(N-1)*INCX)
On entry, X contains the N-vector X.
On exit, X is overwritten.
- offset_x Int32
-
- INCX Int32
-
(input) INTEGER
The increment between successive elements of X. INCX .GT. 0.
- Y Double
-
(input/output) DOUBLE PRECISION array,
dimension (1+(N-1)*INCY)
On entry, Y contains the N-vector Y.
On exit, Y is overwritten.
- offset_y Int32
-
- INCY Int32
-
(input) INTEGER
The increment between successive elements of Y. INCY .GT. 0.
- SSMIN Double
-
(output) DOUBLE PRECISION
The smallest singular value of the N-by-2 matrix A = ( X Y ).
See Also