diff +scheme/Utux.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 adbb80e60b10
children 433c89bf19e0
line wrap: on
line diff
--- a/+scheme/Utux.m	Tue Jan 22 11:12:23 2019 -0800
+++ b/+scheme/Utux.m	Tue Jan 22 11:17:28 2019 -0800
@@ -82,6 +82,17 @@
             o = obj.([op, '_', boundary]);
         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
+
         function N = size(obj)
             N = obj.m;
         end