Mercurial > repos > public > sbplib
comparison +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 |
comparison
equal
deleted
inserted
replaced
1048:adbb80e60b10 | 1049:0c504a21432d |
---|---|
80 assertIsMember(boundary, {'l', 'r'}) | 80 assertIsMember(boundary, {'l', 'r'}) |
81 | 81 |
82 o = obj.([op, '_', boundary]); | 82 o = obj.([op, '_', boundary]); |
83 end | 83 end |
84 | 84 |
85 % Returns square boundary quadrature matrix, of dimension | |
86 % corresponding to the number of boundary points | |
87 % | |
88 % boundary -- string | |
89 % Note: for 1d diffOps, the boundary quadrature is the scalar 1. | |
90 function H_b = getBoundaryQuadrature(obj, boundary) | |
91 assertIsMember(boundary, {'l', 'r'}) | |
92 | |
93 H_b = 1; | |
94 end | |
95 | |
85 function N = size(obj) | 96 function N = size(obj) |
86 N = obj.m; | 97 N = obj.m; |
87 end | 98 end |
88 | 99 |
89 end | 100 end |