Mercurial > repos > public > sbplib
view stripeMatrixPeriodic.m @ 836:049e4c6fa630 feature/poroelastic
Add dirac delta function, with corresponding test. Commented out tests for staggered grid because they do not yet exist on this branch.
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Wed, 05 Sep 2018 14:46:39 -0700 |
parents | bbf303c1f0cf |
children |
line wrap: on
line source
% Creates a periodic discretization matrix of size n x n % with the values of val on the diagonals diag. % A = stripeMatrix(val,diags,n) function A = stripeMatrixPeriodic(val,diags,n) D = ones(n,1)*val; A = spdiagsPeriodic(D,diags); end