Mercurial > repos > public > sbplib
comparison stripeMatrixPeriodic.m @ 801:bbf303c1f0cf feature/poroelastic
Rename spdaigsVariablePeriodic spdiagsPeriodic
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 26 Jul 2018 18:04:29 -0700 |
parents | 7368affc8f78 |
children |
comparison
equal
deleted
inserted
replaced
800:87ea9cac3287 | 801:bbf303c1f0cf |
---|---|
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 |