Mercurial > repos > public > sbplib
view spdiag.m @ 993:44e7e497c3b7 feature/timesteppers
Make time.rk.General accept a butcher tableau instead of a string to choose method. String variant implemented as a static method
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 09 Jan 2019 11:14:16 +0100 |
parents | e76321b89c1e |
children |
line wrap: on
line source
function A = spdiag(a,i) default_arg('i',0); if isrow(a) a = a'; end n = length(a)+abs(i); A = spdiags(a,i,n,n); end