Mercurial > repos > public > sbplib
annotate gaussian.m @ 1020:5359a61cb4d9 feature/advectionRV
Add utility for constructing the operators used by a discretization emplying RV-stabilization
- Add constructDiffOps which creates the operatores used for a scheme with RV-stabilization
- Minor clean up in RungekuttaExteriorRV
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Fri, 14 Dec 2018 18:33:10 +0100 |
parents | 6514c3b94721 |
children |
rev | line source |
---|---|
576
705658c55229
Add function for gaussian bumb
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
1 function z = gaussian(x,x0,d) |
654
6514c3b94721
Make gaussian work for vector inputs
Jonatan Werpers <jonatan@werpers.com>
parents:
576
diff
changeset
|
2 z = exp(-sum((x-x0).^2,2)/d^2); |
576
705658c55229
Add function for gaussian bumb
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
3 end |