Mercurial > repos > public > sbplib
diff +scheme/Schrodinger.m @ 1049:0c504a21432d feature/getBoundaryOp
Add getBoundaryQuadrature to all 1d diffOps
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Tue, 22 Jan 2019 11:17:28 -0800 |
parents | 5afc774fb7c4 |
children |
line wrap: on
line diff
--- a/+scheme/Schrodinger.m Tue Jan 22 11:12:23 2019 -0800 +++ b/+scheme/Schrodinger.m Tue Jan 22 11:17:28 2019 -0800 @@ -143,6 +143,17 @@ end end + % Returns square boundary quadrature matrix, of dimension + % corresponding to the number of boundary points + % + % boundary -- string + % Note: for 1d diffOps, the boundary quadrature is the scalar 1. + function H_b = getBoundaryQuadrature(obj, boundary) + assertIsMember(boundary, {'l', 'r'}) + + H_b = 1; + end + % Returns the boundary sign. The right boundary is considered the positive boundary % boundary -- string function s = getBoundarySign(obj, boundary)