Mercurial > repos > public > sbplib
view spdiag.m @ 1069:7a55a72729e6 feature/laplace_curvilinear_test
Copy-paste updates from LaplCurvNewCorner to LaplCurvNew, and then modify the corner part.
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Wed, 23 Jan 2019 17:11:48 -0800 |
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