From f2c0669c0d9cac4ce378b8a9c33ad03753cd801d Mon Sep 17 00:00:00 2001 From: jgoppert Date: Sat, 14 Nov 2015 08:55:34 -0500 Subject: [PATCH] Changed rk4 to use generic matrix interface. --- matrix/integration.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/matrix/integration.hpp b/matrix/integration.hpp index 67eae7a453..afc0cb7556 100644 --- a/matrix/integration.hpp +++ b/matrix/integration.hpp @@ -6,12 +6,12 @@ namespace matrix { template int integrate_rk4( - Vector (*f)(Type, const Vector &x, const Vector & u), - const Vector & y0, - const Vector & u, + Vector (*f)(Type, const Matrix &x, const Matrix & u), + const Matrix & y0, + const Matrix & u, Type t0, Type h, - Vector & y1 + Matrix & y1 ) { // https://en.wikipedia.org/wiki/Runge%E2%80%93Kutta_methods