Commit 7be1971e authored by James Willis's avatar James Willis
Browse files

Missed last 2 lines to update w and dw_dx.

parent 2154aa0e
...@@ -212,8 +212,6 @@ __attribute__((always_inline)) INLINE static void kernel_eval(float u, ...@@ -212,8 +212,6 @@ __attribute__((always_inline)) INLINE static void kernel_eval(float u,
*W = w * (float)kernel_constant * (float)kernel_igamma3; *W = w * (float)kernel_constant * (float)kernel_igamma3;
} }
#define VECTORIZE
#ifdef VECTORIZE #ifdef VECTORIZE
/** /**
...@@ -252,6 +250,11 @@ __attribute__((always_inline)) ...@@ -252,6 +250,11 @@ __attribute__((always_inline))
dw_dx->v = (dw_dx->v * x.v) + w->v; dw_dx->v = (dw_dx->v * x.v) + w->v;
w->v = (x.v * w->v) + c[k].v; w->v = (x.v * w->v) + c[k].v;
} }
/* Return everything */
w->v = w->v * vec_set1((float)kernel_constant) * vec_set1((float)kernel_igamma3);
dw_dx->v = dw_dx->v * vec_set1((float)kernel_constant) * vec_set1((float)kernel_igamma4);
} }
#endif #endif
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment