Mercurial > repos > public > sbplib
view stripeMatrix.m @ 87:0a29a60e0b21
In Curve: Rearranged for speed. arc_length_fun is now a property of Curve. If it is not supplied, it is computed via the derivative and spline fitting. Switching to the arc length parameterization is much faster now. The new stuff can be tested with testArcLength.m (which should be deleted after that).
author | Martin Almquist <martin.almquist@it.uu.se> |
---|---|
date | Sun, 29 Nov 2015 22:23:09 +0100 |
parents | 0be702829bb9 |
children | 5cb99f56f55e |
line wrap: on
line source
% Creates a matrix of size n,m with the values of val on the diagonals diag. function A = stripeMatrix(val,diags,n,m) default_arg('m',n); D = ones(n,1)*val; A = spdiags(D,diags,n,m); end