accelerInt
v0.1
examples
van_der_pol
sparse_multiplier.c
Go to the documentation of this file.
1
7
#include "
sparse_multiplier.h
"
8
9
#ifdef GENERATE_DOCS
10
//put this in the van der Pol namespace for documentation
11
namespace
van_der_pol
{
12
#endif
13
14
21
void
sparse_multiplier
(
const
double
* A,
const
double
* Vm,
double
* w) {
22
w[0] = A[0] * Vm[0] + A[
NSP
] * Vm[1];
23
w[1] = A[1] * Vm[0] + A[
NSP
+ 1] * Vm[1];
24
}
25
26
27
#ifdef GENERATE_DOCS
28
}
29
#endif
sparse_multiplier.h
Header definition for Jacobian vector multiplier, used in exponential integrators.
NSP
#define NSP
The IVP system size.
Definition:
header.cuh:20
van_der_pol::sparse_multiplier
void sparse_multiplier(const double *A, const double *Vm, double *w)
Implements Jacobian \ vector multiplication in sparse (or unrolled) form.
Definition:
sparse_multiplier.c:21
van_der_pol
Definition:
dydt.c:13
Generated by
1.8.14