p?trsm
p?trsm
Solves a distributed matrix equation (one matrix operand is triangular).
Syntax
void pstrsm
(
const char
*side
,
const char
*uplo
,
const char
*transa
,
const char
*diag
,
const MKL_INT
*m
,
const MKL_INT
*n
,
const float
*alpha
,
const float
*a
,
const MKL_INT
*ia
,
const MKL_INT
*ja
,
const MKL_INT
*desca
,
float
*b
,
const MKL_INT
*ib
,
const MKL_INT
*jb
,
const MKL_INT
*descb
);
void pdtrsm
(
const char
*side
,
const char
*uplo
,
const char
*transa
,
const char
*diag
,
const MKL_INT
*m
,
const MKL_INT
*n
,
const double
*alpha
,
const double
*a
,
const MKL_INT
*ia
,
const MKL_INT
*ja
,
const MKL_INT
*desca
,
double
*b
,
const MKL_INT
*ib
,
const MKL_INT
*jb
,
const MKL_INT
*descb
);
void pctrsm
(
const char
*side
,
const char
*uplo
,
const char
*transa
,
const char
*diag
,
const MKL_INT
*m
,
const MKL_INT
*n
,
const MKL_Complex8
*alpha
,
const MKL_Complex8
*a
,
const MKL_INT
*ia
,
const MKL_INT
*ja
,
const MKL_INT
*desca
,
MKL_Complex8
*b
,
const MKL_INT
*ib
,
const MKL_INT
*jb
,
const MKL_INT
*descb
);
void pztrsm
(
const char
*side
,
const char
*uplo
,
const char
*transa
,
const char
*diag
,
const MKL_INT
*m
,
const MKL_INT
*n
,
const MKL_Complex16
*alpha
,
const MKL_Complex16
*a
,
const MKL_INT
*ia
,
const MKL_INT
*ja
,
const MKL_INT
*desca
,
MKL_Complex16
*b
,
const MKL_INT
*ib
,
const MKL_INT
*jb
,
const MKL_INT
*descb
);
Include Files
- mkl_pblas.h
Description
The
p?trsm
routines solve one of the following distributed matrix equations: op(sub(A))*X = alpha*sub(B),
or
X*op(sub(A)) = alpha*sub(B),
where:
alpha
is a scalar,X
and sub(
are B
)m
-by-n
distributed matrices, sub(
;B
)=B
(ib
:ib
+m
-1, jb
:jb
+n
-1)A
is a unit, or non-unit, upper or lower triangular distributed matrix, sub(
,
if A
)=A
(ia
:ia
+m
-1, ja
:ja
+m
-1)side
= 'L
''
, and l
'sub(
, if A
)=A
(ia
:ia
+n
-1, ja
:ja
+n
-1)side
= 'R
''
;r
'op(sub(
is one of A
))op(sub(
, or A
)) = sub(A
)op(sub(
, or A
)) = sub(A
)'op(sub(
.A
)) = conjg(sub(A
)')The distributed matrix
sub(
is overwritten by the solution matrix B
)X
.Input Parameters
- side
- (global) Specifies whetherop(sub(appears on the left or right ofA))Xin the equation:iforside='L''l', thenop(sub(;A))*X=alpha*sub(B)iforside='R''r', then.X*op(sub(A)) =alpha*sub(B)
- uplo
- (global) Specifies whether the distributed matrixsub(is upper or lower triangular:A)iforuplo='U''u', then the matrix is upper triangular;iforuplo='L''l', then the matrix is low triangular.
- transa
- (global) Specifies the form ofop(sub(used in the matrix equation:A))ifortransa= 'N'', thenn'op(sub(;A)) = sub(A)ifortransa= 'T'', thent'op(sub(;A)) = sub(A)'ifortransa= 'C'', thenc'op(sub(.A)) = conjg(sub(A)')
- diag
- (global) Specifies whether the matrixsub(is unit triangular:A)ifordiag='U''u'then the matrix is unit triangular;ifordiag='N''n', then the matrix is not unit triangular.
- m
- (global) Specifies the number of rows of the distributed matrixsub(,B)m≥0.
- n
- (global) Specifies the number of columns of the distributed matrixsub(,B)n≥0.
- alpha
- (global)Specifies the scalaralpha.Whenalphais zero, thenais not referenced andbneed not be set before entry.
- a
- (local)Array, sizelld_abyka, wherekais at leastLOCq(1,whenja+m-1)orside='L''l'and is at leastLOCq(1,whenja+n-1)orside='R''r'.Before entry withoruplo='U''u', this array contains the local entries corresponding to the entries of the upper triangular distributed matrixsub(, and the local entries corresponding to the entries of the strictly lower triangular part of the distributed matrixA)sub(is not referenced.A)Before entry withoruplo='L''l', this array contains the local entries corresponding to the entries of the lower triangular distributed matrixsub(, and the local entries corresponding to the entries of the strictly upper triangular part of the distributed matrixA)sub(is not referenced .A)Whenordiag='U''u', the local entries corresponding to the diagonal elements of the submatrixsub(are not referenced either, but are assumed to be unity.A)
- ia,ja
- (global) The row and column indices in the distributed matrixAindicating the first row and the first column of the submatrixsub(, respectively.A)
- desca
- (global and local) array of dimension 9. The array descriptor of the distributed matrixA.
- b
- (local)Array, size (lld_b,LOCq(1,).jb+n-1)Before entry, this array contains the local pieces of the distributed matrixsub(.B)
- ib,jb
- (global) The row and column indices in the distributed matrixBindicating the first row and the first column of the submatrixsub(, respectively.B)
- descb
- (global and local) array of dimension 9. The array descriptor of the distributed matrixB.
Output Parameters
- b
- Overwritten by the solution distributed matrixX.