Mercurial > repos > public > sbplib
comparison stripeMatrixPeriodic.m @ 890:c70131daaa6e feature/d1_staggered
Merge with feature/poroelastic.
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Wed, 21 Nov 2018 18:29:29 -0800 |
parents | bbf303c1f0cf |
children |
comparison
equal
deleted
inserted
replaced
885:18e10217dca9 | 890:c70131daaa6e |
---|---|
1 % Creates a periodic discretization matrix of size n x n | 1 % Creates a periodic discretization matrix of size n x n |
2 % with the values of val on the diagonals diag. | 2 % with the values of val on the diagonals diag. |
3 % A = stripeMatrix(val,diags,n) | 3 % A = stripeMatrix(val,diags,n) |
4 function A = stripeMatrixPeriodic(val,diags,n) | 4 function A = stripeMatrixPeriodic(val,diags,n) |
5 | 5 |
6 D = ones(n,1)*val; | 6 D = ones(n,1)*val; |
7 A = spdiagsVariablePeriodic(D,diags); | 7 A = spdiagsPeriodic(D,diags); |
8 end | 8 end |