opm-simulators
Loading...
Searching...
No Matches
bsr.h
1
#pragma once
2
3
#ifdef __cplusplus
4
extern
"C"
{
5
#endif
6
10
typedef
11
struct
bsr_matrix
12
{
13
// number or rows
14
int
nrows;
15
// number or columns
16
int
ncols;
17
// number or non-zero blocks
18
int
nnz;
19
// block-size
20
int
b;
21
22
// pointer ot row offsets
23
int
*rowptr;
24
// pointer to column indices
25
int
*colidx;
26
// pointer to double-precision values
27
double
*dbl;
28
// pointer to single-precision values
29
float
*flt;
30
31
}
bsr_matrix
;
32
38
bsr_matrix
* bsr_alloc();
39
45
void
bsr_free(
bsr_matrix
*A);
46
55
void
bsr_init(
bsr_matrix
*A,
int
nrows,
int
nnz,
int
b);
56
67
void
bsr_vmspmv3(
bsr_matrix
*A,
const
double
*x,
double
*y);
68
79
void
bsr_vdspmv3(
bsr_matrix
*A,
const
double
*x,
double
*y);
80
86
void
bsr_downcast(
bsr_matrix
*M);
87
93
void
bsr_info(
bsr_matrix
*A);
94
101
void
bsr_sparsity(
const
bsr_matrix
*A,
const
char
*name);
102
109
void
bsr_nonzeros(
bsr_matrix
*A,
const
char
*name);
110
111
#ifdef __cplusplus
112
}
113
#endif
bsr_matrix
Mixed-precision bsr matrix.
Definition
bsr.h:12
opm
simulators
linalg
mixed
bsr.h
Generated by
1.15.0