OpenRadioss
2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
BI_dvmcopy.c
Go to the documentation of this file.
1
#include "
Bdef.h
"
2
3
void
BI_dvmcopy
(
Int
m,
Int
n
,
double
*A,
Int
lda,
double
*buff)
4
/*
5
* performs an vector to matrix copy (unpack) for the data type double
6
*/
7
{
8
Int
i, j;
9
10
if
( (m == lda) || (
n
== 1) )
11
{
12
m =
n
* m;
13
for
(i=0; i < m; i++) A[i] = buff[i];
14
}
15
else
if
(m == 1)
16
{
17
for
(j=0; j <
n
; j++) A[j*lda] = buff[j];
18
}
19
else
20
{
21
for
(j=0; j<
n
; j++)
22
{
23
for
(i=0; i < m; i++) A[i] = buff[i];
24
A += lda;
25
buff += m;
26
}
27
}
28
}
BI_dvmcopy
void BI_dvmcopy(Int m, Int n, double *A, Int lda, double *buff)
Definition
BI_dvmcopy.c:3
Int
#define Int
Definition
Bconfig.h:22
Bdef.h
n
n
Definition
schur_example.m:9
engine
extlib
scalapack-2.2.0
BLACS
SRC
BI_dvmcopy.c
Generated by
1.15.0