accelerInt  v0.1
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
Header definition for Jacobian vector multiplier, used in exponential integrators.
#define NSP
The IVP system size.
Definition: header.cuh:20
void sparse_multiplier(const double *A, const double *Vm, double *w)
Implements Jacobian \ vector multiplication in sparse (or unrolled) form.