Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properly test SPM's integration scheme spm_int_J.m #7

Open
david-hofmann opened this issue Jan 12, 2022 · 0 comments
Open

Properly test SPM's integration scheme spm_int_J.m #7

david-hofmann opened this issue Jan 12, 2022 · 0 comments
Assignees

Comments

@david-hofmann
Copy link
Member

When setting up the test for the hemodynamic response model I noticed that I wasn't able to reproduce the numerical solution of the respective differential equations with the Julia implementation of the following equation that spm_int_J allegedly computes
dx = (expm(dt*J) - I)*inv(J)*fx
This was done with ExponentialUtilities.jl
Δx = (exponential!(dt*J[:,:,2]) - I)*inv(J[:,:,2])*reshape(dx[:,:,2],nd-nr)

Putting this on the back burner for now but dropping this Issue here to not forget to check this more thoroughly later.

@david-hofmann david-hofmann self-assigned this Jan 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant