Mercurial > repos > public > sbplib
view +sbp/BlockNorm.m @ 87:0a29a60e0b21
In Curve: Rearranged for speed. arc_length_fun is now a property of Curve. If it is not supplied, it is computed via the derivative and spline fitting. Switching to the arc length parameterization is much faster now. The new stuff can be tested with testArcLength.m (which should be deleted after that).
author | Martin Almquist <martin.almquist@it.uu.se> |
---|---|
date | Sun, 29 Nov 2015 22:23:09 +0100 |
parents | 32b39dc44474 |
children |
line wrap: on
line source
classdef BlockNorm < sbp.OpSet properties norms % Struct containing norm matrices such as H,Q, M boundary % Struct contanging vectors for boundry point approximations derivatives % Struct containging differentiation operators borrowing % Struct with borrowing limits for different norm matrices m % Number of grid points. h % Step size end methods function obj = BlockNorm(m,h,order) if order == 4 [H, HI, D1, D2, e_1, e_m, M,Q S_1, S_m] = sbp.blocknorm4(m,h); elseif order == 6 [H, HI, D1, D2, e_1, e_m, M,Q S_1, S_m] = sbp.blocknorm6(m,h); elseif order == 8 [H, HI, D1, D2, e_1, e_m, M,Q S_1, S_m] = sbp.blocknorm8(m,h); elseif order == 10 [H, HI, D1, D2, e_1, e_m, M,Q S_1, S_m] = sbp.blocknorm10(m,h); else error('Invalid operator order %d.',order); end obj.h = h; obj.m = m; obj.norms.H = H; obj.norms.HI = HI; obj.norms.Q = Q; obj.norms.M = M; obj.boundary.e_1 = e_1; obj.boundary.S_1 = S_1; obj.boundary.e_m = e_m; obj.boundary.S_m = S_m; obj.derivatives.D1 = D1; obj.derivatives.D2 = D2; end end methods (Static) function lambda = smallestGrid(obj) error('Not implmented') end end end