From 8a9793881d3dfa13440c516691144fd6cefa29db Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Wed, 18 Jul 2018 16:10:34 -0400 Subject: some reorganization --- lib/vector.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/vector.h') diff --git a/lib/vector.h b/lib/vector.h index 88934c1..6c72fd1 100644 --- a/lib/vector.h +++ b/lib/vector.h @@ -88,3 +88,9 @@ double correlation_component(vector_t v) { return (double)v.x[0]; } +template +double H_vector(vector_t v1, T *H) { + vector_t H_vec; + H_vec.x = H; + return (double)(dot (v1, H_vec)); +} -- cgit v1.2.3-70-g09d2