opm-simulators
Loading...
Searching...
No Matches
vec.h
1
#pragma once
2
3
#ifdef __cplusplus
4
extern
"C"
{
5
#endif
6
7
15
void
vec_copy(
double
*y,
double
const
* x,
int
n)
16
{
17
for
(
int
i=0;i<n;i++) y[i]=x[i];
18
}
19
27
void
vec_fill(
double
*y,
double
x,
int
n)
28
{
29
for
(
int
i=0;i<n;i++) y[i]=x;
30
}
31
32
33
#ifdef __cplusplus
34
}
35
#endif
opm
simulators
linalg
mixed
vec.h
Generated by
1.15.0