Mercurial > repos > public > sbplib
annotate spdiag.m @ 39:7249f105e67b
Added silent option to noname.testCfl.
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 09 Oct 2015 10:52:42 +0200 |
parents | 97a638f91fb8 |
children | b6cfc04e576c |
rev | line source |
---|---|
27
97a638f91fb8
Added function spdiag(). Fixed a bunch of bugs in the Wave2dCurve scheme.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
1 function A = spdiag(a) |
97a638f91fb8
Added function spdiag(). Fixed a bunch of bugs in the Wave2dCurve scheme.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
2 n = length(a); |
97a638f91fb8
Added function spdiag(). Fixed a bunch of bugs in the Wave2dCurve scheme.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
3 A = spdiags(a,0,n,n); |
97a638f91fb8
Added function spdiag(). Fixed a bunch of bugs in the Wave2dCurve scheme.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
4 end |