Purpose
=======
DLASY2 solves for the N1 by N2 matrix X, 1 .LE. N1,N2 .LE. 2, in
op(TL)*X + ISGN*X*op(TR) = SCALE*B,
where TL is N1 by N1, TR is N2 by N2, B is N1 by N2, and ISGN = 1 or
-1. op(T) = T or T', where T' denotes the transpose of T.
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(
bool LTRANL,
bool LTRANR,
int ISGN,
int N1,
int N2,
double[] TL,
int offset_tl,
int LDTL,
double[] TR,
int offset_tr,
int LDTR,
double[] B,
int offset_b,
int LDB,
ref double SCALE,
ref double[] X,
int offset_x,
int LDX,
ref double XNORM,
ref int INFO
)
Public Sub Run (
LTRANL As Boolean,
LTRANR As Boolean,
ISGN As Integer,
N1 As Integer,
N2 As Integer,
TL As Double(),
offset_tl As Integer,
LDTL As Integer,
TR As Double(),
offset_tr As Integer,
LDTR As Integer,
B As Double(),
offset_b As Integer,
LDB As Integer,
ByRef SCALE As Double,
ByRef X As Double(),
offset_x As Integer,
LDX As Integer,
ByRef XNORM As Double,
ByRef INFO As Integer
)
Request Example
View SourceParameters
- LTRANL Boolean
-
(input) LOGICAL
On entry, LTRANL specifies the op(TL):
= .FALSE., op(TL) = TL,
= .TRUE., op(TL) = TL'.
- LTRANR Boolean
-
(input) LOGICAL
On entry, LTRANR specifies the op(TR):
= .FALSE., op(TR) = TR,
= .TRUE., op(TR) = TR'.
- ISGN Int32
-
(input) INTEGER
On entry, ISGN specifies the sign of the equation
as described before. ISGN may only be 1 or -1.
- N1 Int32
-
(input) INTEGER
On entry, N1 specifies the order of matrix TL.
N1 may only be 0, 1 or 2.
- N2 Int32
-
(input) INTEGER
On entry, N2 specifies the order of matrix TR.
N2 may only be 0, 1 or 2.
- TL Double
-
(input) DOUBLE PRECISION array, dimension (LDTL,2)
On entry, TL contains an N1 by N1 matrix.
- offset_tl Int32
-
- LDTL Int32
-
(input) INTEGER
The leading dimension of the matrix TL. LDTL .GE. max(1,N1).
- TR Double
-
(input) DOUBLE PRECISION array, dimension (LDTR,2)
On entry, TR contains an N2 by N2 matrix.
- offset_tr Int32
-
- LDTR Int32
-
(input) INTEGER
The leading dimension of the matrix TR. LDTR .GE. max(1,N2).
- B Double
-
(input) DOUBLE PRECISION array, dimension (LDB,2)
On entry, the N1 by N2 matrix B contains the right-hand
side of the equation.
- offset_b Int32
-
- LDB Int32
-
(input) INTEGER
The leading dimension of the matrix B. LDB .GE. max(1,N1).
- SCALE Double
-
(output) DOUBLE PRECISION
On exit, SCALE contains the scale factor. SCALE is chosen
less than or equal to 1 to prevent the solution overflowing.
- X Double
-
(output) DOUBLE PRECISION array, dimension (LDX,2)
On exit, X contains the N1 by N2 solution.
- offset_x Int32
-
- LDX Int32
-
(input) INTEGER
The leading dimension of the matrix X. LDX .GE. max(1,N1).
- XNORM Double
-
(output) DOUBLE PRECISION
On exit, XNORM is the infinity-norm of the solution.
- INFO Int32
-
(output) INTEGER
On exit, INFO is set to
0: successful exit.
1: TL and TR have too close eigenvalues, so TL or
TR is perturbed to get a nonsingular equation.
NOTE: In the interests of speed, this routine does not
check the inputs for errors.
See Also