Skip to content

Commit 4bb3f92

Browse files
committed
Merge branch 'issue106/surf-smooth' of github.com:fastalgorithms/chunkie into issue106/surf-smooth
2 parents f7f5677 + a161d98 commit 4bb3f92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chunkie/+chnk/+smoother/get_sigs.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
dexpn = exp(-(dr.^2-dmin.^2)./(2*sig0^2));
2323
dsignum = sum(dsigj.*dexpn,2);
2424
dsigden = sum(dexpn,2);
25-
dsignumx = -dsigj.*dexpn.*(dx./sig0^2);
26-
dsignumy = -dsigj.*dexpn.*(dy./sig0^2);
25+
dsignumx = -sum(dsigj.*dexpn.*(dx./sig0^2),2);
26+
dsignumy = -sum(dsigj.*dexpn.*(dy./sig0^2),2);
2727
dsig = dsignum./dsigden;
2828
dsigx = dsignumx./dsigden;
2929
dsigy = dsignumy./dsigden;

0 commit comments

Comments
 (0)