Developer Reference

  • 2020.2
  • 07/15/2020
  • Public Content
Contents

p?tradd

Performs sum operation for two distributed triangular matrices.

Syntax

call pstradd
(
uplo
,
trans
,
m
,
n
,
alpha
,
a
,
ia
,
ja
,
desca
,
beta
,
c
,
ic
,
jc
,
descc
)
call pdtradd
(
uplo
,
trans
,
m
,
n
,
alpha
,
a
,
ia
,
ja
,
desca
,
beta
,
c
,
ic
,
jc
,
descc
)
call pctradd
(
uplo
,
trans
,
m
,
n
,
alpha
,
a
,
ia
,
ja
,
desca
,
beta
,
c
,
ic
,
jc
,
descc
)
call pztradd
(
uplo
,
trans
,
m
,
n
,
alpha
,
a
,
ia
,
ja
,
desca
,
beta
,
c
,
ic
,
jc
,
descc
)
Include Files
  • mkl_pblas.h
Description
The
p?tradd
routines perform sum operation for two distributed triangular matrices. The operation is defined as
sub(
C
):=
beta
*sub(
C
) +
alpha
*op(sub(
A
)),
where:
op(
x
)
is one of
op(
x
) =
x
, or
op(
x
) =
x
'
, or
op(
x
) = conjg(
x
')
.
alpha
and
beta
are scalars,
sub(
C
)
is an
m
-by-
n
distributed matrix,
sub(
C
)=
C
(
ic
:
ic
+
m
-1,
jc
:
jc
+
n
-1)
.
sub(
A
)
is a distributed matrix,
sub(
A
)=
A
(
ia
:
ia
+
n
-1,
ja
:
ja
+
m
-1)
.
Input Parameters
uplo
(global)
CHARACTER*1
.
Specifies whether the distributed matrix
sub(
C
)
is upper or lower triangular:
if
uplo
=
'U'
or
'u'
, then the matrix is upper triangular;
if
uplo
=
'L'
or
'l'
, then the matrix is low triangular.
trans
(global)
CHARACTER*1
.
Specifies the operation:
if
trans
=
'N'
or
'n'