Skip to content
Snippets Groups Projects
Commit 47affc94 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Revert "Matrix notation: fix bug in numerical Hessian of external functions"

This reverts commit 2acacf61.
parent b87690a9
No related branches found
No related tags found
No related merge requests found
...@@ -59,7 +59,7 @@ m11{arg2}(elem2) = m11{arg2}(elem2) - h; ...@@ -59,7 +59,7 @@ m11{arg2}(elem2) = m11{arg2}(elem2) - h;
% From Abramowitz and Stegun. Handbook of Mathematical Functions (1965) % From Abramowitz and Stegun. Handbook of Mathematical Functions (1965)
% formulas 25.3.24 and 25.3.27 p. 884 % formulas 25.3.24 and 25.3.27 p. 884
if arg1 == arg2 && elem1 == elem2 if arg1==arg2
d = (16*func(p10{:})... d = (16*func(p10{:})...
+16*func(m10{:})... +16*func(m10{:})...
-30*func(args{:})... -30*func(args{:})...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment