comparison +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
comparison
equal deleted inserted replaced
1048:adbb80e60b10 1049:0c504a21432d
141 varargout{i} = d; 141 varargout{i} = d;
142 end 142 end
143 end 143 end
144 end 144 end
145 145
146 % Returns square boundary quadrature matrix, of dimension
147 % corresponding to the number of boundary points
148 %
149 % boundary -- string
150 % Note: for 1d diffOps, the boundary quadrature is the scalar 1.
151 function H_b = getBoundaryQuadrature(obj, boundary)
152 assertIsMember(boundary, {'l', 'r'})
153
154 H_b = 1;
155 end
156
146 % Returns the boundary sign. The right boundary is considered the positive boundary 157 % Returns the boundary sign. The right boundary is considered the positive boundary
147 % boundary -- string 158 % boundary -- string
148 function s = getBoundarySign(obj, boundary) 159 function s = getBoundarySign(obj, boundary)
149 assertIsMember(boundary, {'l', 'r'}) 160 assertIsMember(boundary, {'l', 'r'})
150 161