comparison spdiag.m @ 886:8894e9c49e40 feature/timesteppers

Merge with default for latest changes
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Thu, 15 Nov 2018 16:36:21 -0800
parents e76321b89c1e
children
comparison
equal deleted inserted replaced
816:b5e5b195da1e 886:8894e9c49e40
3 3
4 if isrow(a) 4 if isrow(a)
5 a = a'; 5 a = a';
6 end 6 end
7 7
8 n = length(a)-abs(i); 8 n = length(a)+abs(i);
9 A = spdiags(a,i,n,n); 9 A = spdiags(a,i,n,n);
10 end 10 end