SCALAPACK
2.2.2
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches
BI_dmvcopy.c
Go to the documentation of this file.
1
#include "
Bdef.h
"
2
void
BI_dmvcopy
(
Int
m,
Int
n,
double
*A,
Int
lda,
double
*buff)
3
/*
4
* Performs a matrix to vector copy (pack) for the data type double
5
*/
6
{
7
Int
i, j;
8
9
if
( (m == lda) || (n == 1) )
10
{
11
m = n * m;
12
for
(i=0; i < m; i++) buff[i] = A[i];
13
}
14
else
if
(m == 1)
15
{
16
for
(j=0; j < n; j++) buff[j] = A[j*lda];
17
}
18
else
19
{
20
for
(j=0; j < n; j++)
21
{
22
for
(i=0; i < m; i++) buff[i] = A[i];
23
A += lda;
24
buff += m;
25
}
26
}
27
}
BI_dmvcopy
void BI_dmvcopy(Int m, Int n, double *A, Int lda, double *buff)
Definition
BI_dmvcopy.c:2
Int
#define Int
Definition
Bconfig.h:22
Bdef.h
BLACS
SRC
BI_dmvcopy.c
Generated on Sun Jan 12 2025 15:58:37 for SCALAPACK by
1.9.8