ScaLAPACK 2.1
2.1
ScaLAPACK: Scalable Linear Algebra PACKage
BI_ivvamx2.c
Go to the documentation of this file.
1
#include "
Bdef.h
"
2
void
BI_ivvamx2
(
int
N,
char
*vec1,
char
*vec2)
3
{
4
int
k;
5
int
*v1=(
int
*)vec1, *v2=(
int
*)vec2;
6
int
diff;
7
8
for
(k=0; k != N; k++)
9
{
10
diff =
Rabs
(v1[k]) -
Rabs
(v2[k]);
11
if
(diff < 0) v1[k] = v2[k];
12
else
if
(diff == 0)
if
(v1[k] < v2[k]) v1[k] = v2[k];
13
}
14
}
Rabs
#define Rabs(x)
Definition:
Bdef.h:269
BI_ivvamx2
void BI_ivvamx2(int N, char *vec1, char *vec2)
Definition:
BI_ivvamx2.c:2
Bdef.h
BLACS
SRC
BI_ivvamx2.c
Generated by
1.8.16