Mercurial > repos > public > sbplib
view +sbp/Variable.m @ 103:bc5db54f9efd feature/arclen-param
fzero_vec, integral_vec and spline are now local functions in Curve. Renamed arcLengthStretch to arcLengthParametrization. Removed plot_derivative. Added some comments and extra lines + removed unneccesary lines. arcLength is now a method and not static. Constructor does not accept difference operator anymore.
author | Martin Almquist <martin.almquist@it.uu.se> |
---|---|
date | Mon, 07 Dec 2015 17:24:28 +0100 |
parents | 32b39dc44474 |
children |
line wrap: on
line source
classdef Variable < 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 = Variable(m,h,order) switch order case 4 [H, HI, D1, D2, e_1, e_m, S_1, S_m] = sbp.variable4(m,h); obj.borrowing.M.S = 0.2505765857; otherwise 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