plateform
stringclasses
1 value
repo_name
stringlengths
13
113
name
stringlengths
3
74
ext
stringclasses
1 value
path
stringlengths
12
229
size
int64
23
843k
source_encoding
stringclasses
9 values
md5
stringlengths
32
32
text
stringlengths
23
843k
github
foucart/Basc-master
test_null.m
.m
Basc-master/basc_v1.0/chebfun-master/tests/chebfun/test_null.m
606
utf_8
01cf91bbe5f79e0d74f9b32c7e49f24b
% Test file for @chebfun/null.m. function pass = test_null(pref) if ( nargin < 1 ) pref = chebfunpref(); end % Check some simple examples. f = chebfun(@(x) [sin(x) cos(x) exp(x)], [-1 0 1], pref); Z = null(f); pass(1) = isempty(Z); f = chebfun(@(x) [sin(x) cos(x) exp(1i*x)], [-1 0 1], pref); Z = null(f); pass(2...
github
foucart/Basc-master
test_all.m
.m
Basc-master/basc_v1.0/chebfun-master/tests/chebfun/test_all.m
833
utf_8
f3af496818b4329ea7416fa73e2bc3fc
% Test file for @chebfun/all.m. function pass = test_all(pref) if (nargin < 1) pref = chebfunpref(); end % Test scalar valued chebfuns. f = chebfun(@(x) sin(x), [-1 -0.5 0 0.5 1], pref); pass(1) = ~all(f); f = chebfun(@(x) sin(x - 0.1), [-1 -0.5 0 0.5 1], pref); pass(2) = ~all(f); f = chebfun(@(x) exp(2*pi*1i*...
github
foucart/Basc-master
test_nextpow2.m
.m
Basc-master/basc_v1.0/chebfun-master/tests/chebfun/test_nextpow2.m
1,605
utf_8
a0314de0aa6e7da1b13423094e15fe09
% Test file for @chebfun/nextpow2.m. function pass = test_nextpow2(pref) if ( nargin < 1 ) pref = chebfunpref(); end % Generate a few random points to use as test values. seedRNG(6178); x = 2 * rand(100, 1) - 1; % NEXTPOW2 is not vectorized in versions of MATLAB prior to R2010a. Vectorize % it manually if we'r...
github
foucart/Basc-master
test_remez.m
.m
Basc-master/basc_v1.0/chebfun-master/tests/chebfun/test_remez.m
1,057
utf_8
0a3bc220d68d71eec744b891241308a1
% Test file for @chebfun/remez.m. % Based on the Chebfun v4 test written by LNT, March. 27, 2009. function pass = remeztest(pref) % Generate a few random points to use as test values. seedRNG(6178); xx = 2 * rand(100, 1) - 1; x = chebfun(@(x) x, [-1 1]); % Test known exact answer. f = abs(x) + x; pexact = .5 + x; p...
github
foucart/Basc-master
test_not.m
.m
Basc-master/basc_v1.0/chebfun-master/tests/chebfun/test_not.m
1,965
utf_8
34ad92062dd5f2f5bb5d4d16617458d9
% Test file for @chebfun/not.m. function pass = test_not(pref) if (nargin < 1) pref = chebfunpref(); end % Generate a few random points to use as test values. seedRNG(6178); x = 2 * rand(100, 1) - 1; % Check a few basic cases. f = chebfun(@(x) sin(2*x), [-1 1], pref); g = not(f); pass(1) = isequal(g.pointValues...
github
foucart/Basc-master
test_isfinite.m
.m
Basc-master/basc_v1.0/chebfun-master/tests/chebfun/test_isfinite.m
1,069
utf_8
0cfbb6890ab980737374e097cd7e9d96
% Test file for @chebfun/isfinite.m. function pass = test_isfinite(pref) % Get preferences. if ( nargin < 1 ) pref = chebfunpref(); end % Test finite scalar function. f = chebfun(@(x) sin(x)); pass(1) = isfinite(f); % Test finite array-valued function. f = chebfun(@(x) [sin(x) cos(x)]); pass(2) = isfinite(f); ...
github
foucart/Basc-master
test_horzcat.m
.m
Basc-master/basc_v1.0/chebfun-master/tests/chebfun/test_horzcat.m
1,236
utf_8
8bf1d8591628012570dd2e40e9501ff1
% Test file for @chebfun/horzcat.m. function pass = test_horzcat(pref) if ( nargin < 1 ) pref = chebfunpref(); end % Generate a few random points in [-1 1] to use as test values. seedRNG(7681); xr = 2 * rand(1000, 1) - 1; f = chebfun(@sin, [-1 0 1]); g = chebfun(@cos, [-1 0.5 1]); h = chebfun(@exp, [-1 -0.5 0 0...
github
foucart/Basc-master
test_qr.m
.m
Basc-master/basc_v1.0/chebfun-master/tests/chebfun/test_qr.m
2,110
utf_8
167f801a7ffaf41ec3d285f19a5dc3ef
% Test QR factorization of Chebfun quasimatrices. function pass = test_qr(pref) % [TODO]: This test needs to be much more extensive. if ( nargin == 0 ) pref = chebfunpref(); end %% Test a smooth CHEBFUN: A = chebfun(@(x) [x 1i*x 1+0*x 1+1i+0*x (2-1i)*x], [0, 1], pref); pass(1) = (rank(A) == 2); [Q, R] = qr(A); ...
github
foucart/Basc-master
test_besselh.m
.m
Basc-master/basc_v1.0/chebfun-master/tests/chebfun/test_besselh.m
2,268
utf_8
b86e0d9e41f58c02df702bb4d9a3e7f4
% Test file for @chebfun/besselh.m. function pass = test_besselh(pref) if ( nargin == 0 ) pref = chebfunpref(); end % Generate a few random points to use as test values. seedRNG(6178); xr = 2 * rand(100, 1) - 1; % Enable splitting. % Arbitrary value to use for nu in the tests. nu = 1.663; f = chebfun(@(x) exp...
github
foucart/Basc-master
test_conv.m
.m
Basc-master/basc_v1.0/chebfun-master/tests/chebfun/test_conv.m
3,924
utf_8
507210522ee36023feaf6b3d3f594d01
% Test file for @chebfun/conv.m. function pass = test_conv(pref) % Grab some preferences if ( nargin == 0 ) pref = chebfunpref(); end % Construct a few CHEBFUN objects for the tests. f = chebfun(@(x) x, [-1 1]); g = chebfun(@(x) sin(5*x), [2 4]); h = chebfun(@(x) cos(2*x), [-3 1]); p = chebfun(@(x) sin(15*x), [-...
github
foucart/Basc-master
test_flipud.m
.m
Basc-master/basc_v1.0/chebfun-master/tests/chebfun/test_flipud.m
2,434
utf_8
e26f3b6edae46ffdd69899a1314a0990
% Test file for @chebfun/flipud.m. function pass = test_flipud(pref) % Get preferences. if ( nargin < 1 ) pref = chebfunpref(); end pref.splitting = 1; % Generate a few random points in [-1 1] to use as test values. seedRNG(7681); xr = 2 * rand(50, 1) - 1; % Check the empty input case. pass(1) = isempty(flipud...
github
foucart/Basc-master
test_pinv.m
.m
Basc-master/basc_v1.0/chebfun-master/tests/chebfun/test_pinv.m
701
utf_8
38f162b73dc039ea6c8374a905f5bf95
% Test file for @chebfun/pinv.m. function pass = test_pinv(pref) if ( nargin < 1 ) pref = chebfunpref(); end % Check a few simple examples. f = chebfun(@(x) [sin(x) cos(x) exp(x)], [-1 -0.5 0 0.5 1], pref); g = pinv(f); pass(1) = normest(f*(g*f) - f) < 10*vscale(f)*epslevel(f); pass(2) = normest((g*f)*g - g) < 2...
github
foucart/Basc-master
test_chebpoly.m
.m
Basc-master/basc_v1.0/chebfun-master/tests/chebfun/test_chebpoly.m
1,795
utf_8
835819f8566e3a18e1275d12a3b951c4
% Test file for @chebfun/chebpoly.m. function pass = test_chebpoly(pref) if ( nargin == 0 ) pref = chebfunpref(); end warnState = warning('off', 'CHEBFUN:CHEBFUN:chebpoly:deprecated'); rev = @(A) flipud(A).'; % Test on a smooth chebfun. f = chebfun(@(x) cos(x)); n = 5; c = chebpoly(f, n); c_exact = [besselj(0...
github
foucart/Basc-master
test_addBreaks.m
.m
Basc-master/basc_v1.0/chebfun-master/tests/chebfun/test_addBreaks.m
755
utf_8
ef86bb2f15c1419a8915787bba018d74
% Test file for @chebfun/addBreaks.m function pass = test_addBreaks(pref) if ( nargin == 0 ) pref = chebfunpref(); end % Generate a few random points to use as test values. seedRNG(6178); x = 2 * rand(100, 1) - 1; % Test a scalar chebfun. f = chebfun(@(x) sin(x), [-1 -0.5 0 0.5 1], pref); g = addBreaks(f, [-0.2...
github
foucart/Basc-master
test_legcoeffs.m
.m
Basc-master/basc_v1.0/chebfun-master/tests/chebfun/test_legcoeffs.m
1,925
utf_8
9306a74196f94da63c87a7fae445b8d9
% Test file for @chebfun/legpoly.m. function pass = test_legpoly(pref) if ( nargin < 1 ) pref = chebfunpref(); end % Check coefficients of Legendre polynomials. Q = legpoly(0:4); pass(1) = norm(legcoeffs(Q) - eye(5), 'fro') < 10*vscale(Q)*epslevel(Q); % Check coefficients of a linear combination of Legendre pol...
github
foucart/Basc-master
test_cheboppref.m
.m
Basc-master/basc_v1.0/chebfun-master/tests/chebpref/test_cheboppref.m
1,775
utf_8
c5dccdd876ccac7ff52f898f6c8f3acc
% Test file for cheboppref.m. function pass = test_cheboppref() % Test construction from a cheboppref. p = cheboppref(); pass(1) = isequalNaN(p, cheboppref(p)); % Test construction from a struct. q = struct(); q.damping = 0; q.plotting = 'on'; p = cheboppref(q); pass(2) = (~p.damping) && strcmp(p.plotting, 'on'); %...
github
foucart/Basc-master
test_chebfunpref.m
.m
Basc-master/basc_v1.0/chebfun-master/tests/chebpref/test_chebfunpref.m
4,486
utf_8
a3013b1a3642343160b6f4ac05e71b53
% Test file for chebfunpref.m. function pass = test_chebfunpref() % Test construction from a chebfunpref. p = chebfunpref(); pass(1) = isequalNaN(p, chebfunpref(p)); % Test construction from a struct. q = struct(); q.splitting = true; q.testPref = 'test'; p = chebfunpref(q); pass(2) = p.splitting && strcmp(p.techPre...
github
foucart/Basc-master
test_minandmax.m
.m
Basc-master/basc_v1.0/chebfun-master/tests/classicfun/test_minandmax.m
3,186
utf_8
8f41f66acd1012f0ee9222a19cca87bf
% Test file for @classicfun/minandmax.m function pass = test_minandmax(pref) % Get preferences. if ( nargin < 1 ) pref = chebfunpref(); end singPref = pref; singPref.blowup = true; % Set a domain for BNDFUN. data.domain = [-2 7]; %% % Spot-check the extrema for a few BNDFUN. pass(1) = test_spotcheck_minmax(@(x...
github
foucart/Basc-master
test_minus.m
.m
Basc-master/basc_v1.0/chebfun-master/tests/classicfun/test_minus.m
4,244
utf_8
01d45cd95439575a77737e0a2c5c4ff8
% Test file for @classicfun/minus.m function pass = test_minus(pref) % Get preferences. if ( nargin < 1 ) pref = chebfunpref(); end % Set a domain for BNDFUN. data.domain = [-2 7]; % Generate a few random points to use as test values. seedRNG(6178); x = diff(data.domain) * rand(100, 1) + data.domain(1); % A ra...
github
foucart/Basc-master
test_max.m
.m
Basc-master/basc_v1.0/chebfun-master/tests/classicfun/test_max.m
2,182
utf_8
e78d009faf58f24937ecc64361670f90
% Test file for @classicfun/max.m function pass = test_max(pref) % Get preferences. if ( nargin < 1 ) pref = chebfunpref(); end % Set a domain for BNDFUN. data.domain = [-2 7]; %% % Spot-check the extrema for a few BNDFUN. pass(1) = test_spotcheck_max(@(x) sin(10*x), data, 1, pref); pass(2) = test_spotchec...
github
foucart/Basc-master
test_min.m
.m
Basc-master/basc_v1.0/chebfun-master/tests/classicfun/test_min.m
2,267
utf_8
9f0c1d5c95b65ab38851b6bd1e6c1c73
% Test file for @classicfun/min.m function pass = test_min(pref) % Get preferences. if ( nargin < 1 ) pref = chebfunpref(); end singPref = pref; singPref.blowup = true; % Set a domain for BNDFUN. data.domain = [-2 7]; %% % Spot-check the extrema for a few BNDFUN. pass(1) = test_spotcheck_min(@(x) -sin(10*x...
github
foucart/Basc-master
test_mtimes.m
.m
Basc-master/basc_v1.0/chebfun-master/tests/classicfun/test_mtimes.m
3,057
utf_8
1aab5712d89cf2f04c84b11989913d99
% Test file for @classicfun/mtimes.m function pass = test_mtimes(pref) % Get preferences. if ( nargin < 1 ) pref = chebfunpref(); end % Set a domain for BNDFUN. data.domain = [-2 7]; % Generate a few random points to use as test values. seedRNG(6178); x = diff(data.domain) * rand(1000, 1) + data.domain(1); % A...
github
foucart/Basc-master
test_plus.m
.m
Basc-master/basc_v1.0/chebfun-master/tests/classicfun/test_plus.m
4,583
utf_8
85aefa2cd70fbb5eeadca48d3f6b3490
% Test file for @classicfun/plus.m function pass = test_plus(pref) % Get preferences. if ( nargin < 1 ) pref = chebfunpref(); end singPref = pref; singPref.blowup = true; % Set a domain for BNDFUN. data.domain = [-2 7]; % Generate a few random points to use as test values. seedRNG(6178); x = diff(data.domain) ...
github
foucart/Basc-master
test_isempty.m
.m
Basc-master/basc_v1.0/chebfun-master/tests/classicfun/test_isempty.m
1,110
utf_8
3ad2b32be8c87b94ebb314c04af122ab
% Test file for @classicfun/isempty.m function pass = test_isempty(pref) if ( nargin < 1 ) pref = chebfunpref(); end singPref = pref; singPref.blowup = true; % Set a domain for BNDFUN. data.domin = [-2 7]; %% % Test an empty BNDFUN: f = bndfun(); pass(1) = isempty(f); %% % Test an non-empty BNDFUN: f = bn...
github
foucart/Basc-master
test_isequal.m
.m
Basc-master/basc_v1.0/chebfun-master/tests/classicfun/test_isequal.m
1,528
utf_8
ef64e9665504714cd4d52c94ea1a193a
% Test file for @classicfun/isequal.m function pass = test_isequal(pref) % Get preferences. if ( nargin < 1 ) pref = chebfunpref(); end singPref = pref; singPref.blowup = true; % Set a domain for BNDFUN. data.domain = [-2 7]; %% % Run a few basic tests for BNDFUN. f = bndfun(@(x) sin(x), data, pref); g = f; p...
github
foucart/Basc-master
test_rdivide.m
.m
Basc-master/basc_v1.0/chebfun-master/tests/classicfun/test_rdivide.m
4,709
utf_8
4bf28e4e0ad19edffe968735f5f8ca48
% Test file for @classicfun/rdivide.m function pass = test_rdivide(pref) % Get preferences. if ( nargin < 1 ) pref = chebfunpref(); end singPref = pref; singPref.blowup = true; % Set a domain for BNDFUN. data.domain = [-2 7]; % Generate a few random points to use as test values. seedRNG(6178); x = diff(data.do...
github
foucart/Basc-master
test_roots.m
.m
Basc-master/basc_v1.0/chebfun-master/tests/classicfun/test_roots.m
3,598
utf_8
839679bbbcb4e95f1b3b002e606e98a6
% Test file for @classicfun/roots.m function pass = test_roots(pref) if ( nargin < 1 ) pref = chebfunpref(); end singPref = pref; singPref.blowup = true; % Set a domain for BNDFUN. data.domain = [-2 7]; %% % Test roots of a bessel BNDFUN: map = @(x) (x+2)*100/9; f = bndfun(@(x) besselj(0, map(x)), data, pref)...
github
foucart/Basc-master
test_mat2cell.m
.m
Basc-master/basc_v1.0/chebfun-master/tests/classicfun/test_mat2cell.m
2,358
utf_8
66dff5bf8e762bbd43624a325028d2b5
% Test file for @classicfun/mat2cell.m function pass = test_mat2cell(pref) % Get preferences. if ( nargin < 2 ) pref = chebfunpref(); end % Set a domain for BNDFUN. data.domain = [-2 7]; % Generate a few random points to use as test values. seedRNG(6178); x = diff(data.domain) * rand(1000, 1) + data.domain(1); ...
github
foucart/Basc-master
test_times.m
.m
Basc-master/basc_v1.0/chebfun-master/tests/classicfun/test_times.m
6,913
utf_8
c7a940730f06030c817f53324a001496
% Test file for @classicfun/times.m function pass = test_times(pref) % Get preferences. if (nargin < 1) pref = chebfunpref(); end singPref = pref; singPref.blowup = true; % Set a domain for BNDFUN. data.domain = [-2 7]; % Generate a few random points to use as test values. seedRNG(6178); x = diff(data.domain) ...
github
foucart/Basc-master
test_oldschool.m
.m
Basc-master/basc_v1.0/chebfun-master/tests/linop/test_oldschool.m
1,312
utf_8
04c4e8bcaeffd1e179a8f4aac3578215
function pass = test_oldschool %% Test the 'old-school' linop syntaxes for ATAP compatibility % Toby Driscoll, 3 March 2014 d = domain(-1,1); %% Just test whether these will execute. pass(1) = doesNotCrash( @() diff(d) ); pass(2) = doesNotCrash( @() eye(d) ); pass(3) = doesNotCrash( @() diag(chebfun('x',d([1 end])),...
github
foucart/Basc-master
merge.m
.m
Basc-master/basc_v1.0/chebfun-master/@chebDiscretization/merge.m
1,549
utf_8
44050af46fe07b945b47d2754df958ae
function varargout = merge(varargin) %MERGE Merge information from two CHEBDISCRETIZATION objects. % [A, B] = MERGE(A, B) synchronize the properties of CHEBDISCRETIZATIONS A and % B so that they will behave compatably when instantiated. % % [A1, A2, ...] = MERGE(A1, A2, ...) is the same as above, but for multip...
github
foucart/Basc-master
fred.m
.m
Basc-master/basc_v1.0/chebfun-master/@blockFunction/fred.m
1,701
utf_8
f013cd03a659967d848bc95268a3b900
function f = fred(kernel, A, oneVar) % FRED Fredholm integral operator. % % F = FRED(K,V) computes the Fredholm integral with kernel K: % % (F*v)(x) = int( K(x,y)*v(y), y=a..b ), % % where [a b] = domain(V). The kernel function K(x,y) should be smooth for % best results. % % K must be defined as a function of two...
github
foucart/Basc-master
volt.m
.m
Basc-master/basc_v1.0/chebfun-master/@blockFunction/volt.m
2,299
utf_8
b92baecd1fbabf4ac828fee66cc32aa8
function f = volt(kernel, A, oneVar) % VOLT Volterra integral operator. % V = VOLT(K,D) constructs a chebop representing the Volterra integral % operator with kernel K for functions in domain D=[a,b]: % % (V*v)(x) = int( K(x,y) v(y), y=a..x ) % % The kernel function K(x,y) should be smooth for best results....
github
foucart/Basc-master
setupFields.m
.m
Basc-master/basc_v1.0/chebfun-master/@chebgui/setupFields.m
13,879
utf_8
58b12cba9816e555364b1a694a47f48c
function [field, allVarString, indVarName, pdeVarNames, pdeflag, ... eigVarNames, allVarNames] = setupFields(guifile, input, type, allVarString) %SETUPFIELDS Convert input from GUI window to format useful for Chebfun. % % Calling sequence: % % [FIELD, ALLVARSTRING, INDVARNAME, PDEVARNAMES, PDEFLAG, EIGVARNAME...
github
foucart/Basc-master
solveGUI.m
.m
Basc-master/basc_v1.0/chebfun-master/@chebgui/solveGUI.m
6,467
utf_8
882d7bfe89ae2728a26cdcb170798ede
function handles = solveGUI(guifile, handles) %SOLVEGUI Called when a user hits the solve button of the Chebfun GUI. % % Calling sequence: % % HANDLES = SOLVEGUI(GUIFILE, HANDLES) % % where % % HANDLES: A MATLAB handle object to the CHEBGUIWINDOW figure. % GUIFILE: A CHEBGUI object. % Copyright 2014 ...
github
foucart/Basc-master
displayBVPinfo.m
.m
Basc-master/basc_v1.0/chebfun-master/@chebgui/displayBVPinfo.m
7,172
utf_8
e667e4d5db01715f43c3a56a02870dc9
function varargout = displayBVPinfo(handles, mode, varargin) %DISPLAYBVPINFO Show information on the CHEBGUI figure when solving BVPs. % % Calling sequence: % VARARGOUT = DISPLAYBVPINFO(HANDLES, MODE, VARARGIN) % where % VARARGOUT when MODE = 'INIT': % VARARGOUT{1}: Dummy output, required for consistency ...
github
foucart/Basc-master
quiver3.m
.m
Basc-master/basc_v1.0/chebfun-master/@chebfun2/quiver3.m
3,321
utf_8
698531cf6947f05360cff03d3f01bb9c
function varargout = quiver3( Z, F, varargin ) %QUIVER3 3-D quiver plot of a CHEBFUN2V at data mapped by a CHEBFUN2. % % QUIVER3(Z, F) plots velocity vectors at the equally spaced surface points % specified by the CHEBFUN2 Z. We use Z to map a uniform grid. F should be % a CHEBFUN2V. % % QUIVER3(X, Y, Z, F) plots velo...
github
foucart/Basc-master
quiver.m
.m
Basc-master/basc_v1.0/chebfun-master/@chebfun2/quiver.m
4,409
utf_8
01cacb9d44bb40bbf57ccd827cc27142
function varargout = quiver( f1, f2, varargin ) %QUIVER Quiver plot of a CHEBFUN2. % QUIVER(F, G) plots the vector velocity field of (F,G). QUIVER automatically % attempts to scale the arrows to fit within the grid. The arrows start on a % uniform grid. This returns the same plot as QUIVER([F ; G]). % % QUIVE...
github
foucart/Basc-master
plus.m
.m
Basc-master/basc_v1.0/chebfun-master/@chebfun2/plus.m
2,970
utf_8
65a49708d831a76fbafc93cd694c0bfc
function h = plus(f, g) %+ Plus for CHEBFUN2 objects. % % F + G adds F and G. F and G can be scalars or CHEBFUN2 objects. % Copyright 2014 by The University of Oxford and The Chebfun Developers. % See http://www.chebfun.org/ for Chebfun information. if ( ~isa(f, 'chebfun2') ) % ??? + CHEBFUN2 h = plus(g, f...
github
foucart/Basc-master
sampleTest.m
.m
Basc-master/basc_v1.0/chebfun-master/@chebfun2/sampleTest.m
2,550
utf_8
8b6613fd575faacce2efd7402669a956
function pass = sampleTest(f, sampleOP, tol, flag) %SAMPLETEST Test an evaluation of input OP against a CHEBFUN2 approximation. % % SAMPLETEST(F, SAMPLEOP, TOL) evaluates both the function OP and its % CHEBFUN2 representation F at several points in it's domain. The difference of % these values is computed, and ...
github
foucart/Basc-master
constructor.m
.m
Basc-master/basc_v1.0/chebfun-master/@chebfun2/constructor.m
20,191
utf_8
be085dfb3312ec61779ca1d1235961b8
function g = constructor(g, op, dom, varargin) %CONSTRUCTOR The main CHEBFUN2 constructor. % % This code is when functions of two variables are represented as CHEBFUN2 % objects. A CHEBFUN2 object is a low rank representation and expresses a % function as a sum of rank-0 or 1 outerproduct of univariate functions. % %...
github
foucart/Basc-master
cumsum.m
.m
Basc-master/basc_v1.0/chebfun-master/@singfun/cumsum.m
7,607
utf_8
7be41cde0f8c002deb534fd55e93c37c
function g = cumsum(f, dim) %CUMSUM Indefinite integral of a SINGFUN. % CUMSUM(F) is the indefinite integral of the SINGFUN F with the constant of % integration chosen zero. % % Note that the second argument must be 1, indicating that no support for % array-valued F. % % WARNING: The current version of CUMS...
github
foucart/Basc-master
singfun.m
.m
Basc-master/basc_v1.0/chebfun-master/@singfun/singfun.m
17,119
utf_8
9a8080d597a860b94c7f39c3f0856e1d
classdef (InferiorClasses = {?chebtech2, ?chebtech1}) singfun < onefun %(See Notes) %SINGFUN Class for functions with singular endpoint behavior. % % Class for approximating singular functions on the interval [-1,1] using a % smooth part with no singularities and two singular factors (1+x).^a and % (1-x).^...
github
foucart/Basc-master
chebcoeffs.m
.m
Basc-master/basc_v1.0/chebfun-master/@singfun/chebcoeffs.m
3,962
utf_8
ee354ef9fe8cd3aba4066bb1ae1268c8
function out = chebcoeffs(f, N) %CHEBCOEFFS Chebyshev polynomial coefficients of a SINGFUN. % A = CHEBCOEFFS(F, N) returns the row vector of first N Chebyshev coefficients % of F such that F = ... + A(1) T_{N-1}(x) + ... + A(N-1) T_1(x) + A(N) T_0(x) % where T_k(x) denotes the k-th Chebyshev polynomial. % % See...
github
foucart/Basc-master
plotData.m
.m
Basc-master/basc_v1.0/chebfun-master/@singfun/plotData.m
3,247
utf_8
a52ceeab45f0290ce22ffd281919f9ca
function data = plotData(f, g, h) %PLOTDATA Useful data values for plotting a SINGFUN object. % DATA = PLOTDATA(F) extracts PLOTDATA of the smooth part of F and then scales % it by the singular factors given in the EXPONENTS of F. % % DATA = PLOTDATA(F, G) is similar but for plot calls of the form PLOT(F, G), %...
github
foucart/Basc-master
findPoleOrder.m
.m
Basc-master/basc_v1.0/chebfun-master/@singfun/findPoleOrder.m
2,846
utf_8
3d0b1078cc9a1d4789cf710a897ed108
function poleOrder = findPoleOrder(op, singEnd) %FINDPOLEORDER Find the order of the pole in a function handle at 1 or -1. % FINDPOLEORDER(OP, SINGEND) finds the order of the pole in the function % handle OP at the point x = 1 or x = -1 depending upon the string 'right' % or 'left' passed in SINGEND. % % ...
github
foucart/Basc-master
findSingOrder.m
.m
Basc-master/basc_v1.0/chebfun-master/@singfun/findSingOrder.m
3,941
utf_8
2c8b881f7715b69955c61546fda41f08
function singOrder = findSingOrder(op, singEnd) %FINDSINGORDER Finds the order of the singularity in a function handle. % FINDSINGORDER(OP, SINGEND) finds the order of the algebraic singularity % in the function handle OP at x = -1 or x = 1 depending upon the string % 'left' or 'right' passed in SINGEND. The s...
github
foucart/Basc-master
cumsum.m
.m
Basc-master/basc_v1.0/chebfun-master/@unbndfun/cumsum.m
2,693
utf_8
2e0cf95cd28d7606dd27952bbc0e460b
function [f, rVal] = cumsum(f, dim) %CUMSUM Indefinite integral of an UNBNDFUN. % CUMSUM(F) is the indefinite integral of the UNBNDFUN F on an interval [a,b], % with the constant of integration chosen so that F(a) = 0. % % CUMSUM(F, 2) will take the cumulative sum over the columns F an array-valued % UNBNDFU...
github
foucart/Basc-master
roots.m
.m
Basc-master/basc_v1.0/chebfun-master/@unbndfun/roots.m
2,988
utf_8
9393ba436d64e9618332f38465ef764c
function r = roots(f, varargin) %ROOTS Roots of an UNBNDFUN in an unbounded domain. % ROOTS(F) returns the real roots of the UNBNDFUN F. % % ROOTS(F, OPTIONS) modifies the default ROOTS properties, by passing the % OPTIONS to the rootfinding method of the ONEFUN of F. % Copyright 2014 by The University of Oxfo...
github
foucart/Basc-master
plotData.m
.m
Basc-master/basc_v1.0/chebfun-master/@unbndfun/plotData.m
2,808
utf_8
0dada818fb15b5cddb64cb06fc350b27
function data = plotData(f, g, h) %PLOTDATA Useful data values for plotting an UNBNDFUN object. % DATA = PLOTDATA(F) returns a cell array of data values that can be used for % plotting F. In particular, DATA is a 4x1 cell array of the form {xLine, % fLine, xPoints, fPoints}, where xLine-fLine are a data pair f...
github
foucart/Basc-master
unbndfun.m
.m
Basc-master/basc_v1.0/chebfun-master/@unbndfun/unbndfun.m
9,000
utf_8
53ed25c7db5e7fdbb312d2ce8be2df66
classdef unbndfun < classicfun %UNBNDFUN Represent global functions on an unbounded interval [-inf inf] or % a semi-infinite interval [-inf b] or [a inf]. % % Constructor inputs: % UNBNDFUN(OP) constructs a UNBNDFUN object from the function handle OP on the % domain determined by the default in CHEBFUNPREF by ma...
github
foucart/Basc-master
sum.m
.m
Basc-master/basc_v1.0/chebfun-master/@unbndfun/sum.m
4,037
utf_8
d3039c8a9b8e0960581f94adcea4fef0
function out = sum(g) %SUM Definite integral of a UNBNDFUN on singly- or doubly-infinite domain. % SUM(G) is the definite integral of G, whose domain can be either singly- % infinite or doubly-infinite. % % See also CUMSUM, DIFF. % Copyright 2014 by The University of Oxford and The Chebfun Developers. % See ht...
github
foucart/Basc-master
classicfun.m
.m
Basc-master/basc_v1.0/chebfun-master/@classicfun/classicfun.m
10,003
utf_8
85b87541ede70fbeb23974e245851815
classdef classicfun < fun % (Abstract) %CLASSICFUN Represent global functions on an interval [a, b]. % % Abstract (interface) class for representing global functions on an interval % [a, b], which can either be bounded or unbounded. Functions are % approximated via a ONEFUN object, which lives on the interval [...
github
foucart/Basc-master
eigs.m
.m
Basc-master/basc_v1.0/chebfun-master/@linop/eigs.m
15,920
utf_8
4c4a937263a8a9353723e8c6eea7869a
function varargout = eigs(A, varargin) %EIGS Eigenvalues and eigenfunctions of a linear operator. % Important: While you can construct a LINOP and apply this method, the % recommended procedure is to use CHEBOP.EIGS instead. % % D = EIGS(A) returns a vector of 6 eigenvalues of the linop A. EIGS will % ...
github
foucart/Basc-master
null.m
.m
Basc-master/basc_v1.0/chebfun-master/@linop/null.m
4,830
utf_8
32cf547124c2c530bd64fdef8fcb98b4
function v = null(A, pref) %NULL Null space of a LINOP. % Z = NULL(A) returns a CHEBMATRIX with orthonormal columns which span the % null space of the LINOP A. That is, A*Z has negligible elements, SIZE(Z, 2) % is the nullity of A, and Z'*Z = I. A may contain linear boundary conditions, % but they will be tre...
github
foucart/Basc-master
fitBCs.m
.m
Basc-master/basc_v1.0/chebfun-master/@linop/fitBCs.m
5,405
utf_8
984483bb3437424f9528402e187df3ed
function u0 = fitBCs(L, prefs) %FITBCS Find a low-order polynomial which satisfies the BCs of a LINOP. % U0 = FITBCS(L) Returns a CHEBMATRIX which will satisfy the BCs % and other conditions of the linop L. % Copyright 2014 by The University of Oxford and The Chebfun Developers. % See http://www.chebfun.or...
github
foucart/Basc-master
deriveContinuity.m
.m
Basc-master/basc_v1.0/chebfun-master/@linop/deriveContinuity.m
3,567
utf_8
7eed841209fcb488b5f4762ff89b98d7
function L = deriveContinuity(L, dom, makePeriodic) %DERIVECONTINUITY Continuity conditions in a piecewise domain. % L = DERIVECONTINUITY(L) examines the domain of L and the differential % orders of the variables in the system, in order to deduce and encode % the appropriate continuity conditions for each var...
github
foucart/Basc-master
loadDemoMenu.m
.m
Basc-master/basc_v1.0/chebfun-master/@chebguiController/loadDemoMenu.m
6,143
utf_8
91aa3cbee5e6309f42e485265e939777
function loadDemoMenu(handles) %LOADDEMOMENU Populate the 'Demos' menu on the CHEBGUI figure. % Copyright 2014 by The University of Oxford and The Chebfun Developers. % See http://www.chebfun.org/ for Chebfun information. % Begin by checking whether we have already loaded the demos if ( ~isempty(get(handles.menu_d...
github
foucart/Basc-master
instantiate.m
.m
Basc-master/basc_v1.0/chebfun-master/@ultraS/instantiate.m
2,937
utf_8
6a889cbfd212c85389dc159c50c9148d
function [M, S] = instantiate(disc) %INSTANTIATE Convert a ULTRAS discretization to discrete form. % M = INSTANTIATE(DISC) converts each item DISC.SOURCE to discrete form % using the information in discretization DISC. The result M is return a cell % array if DISC.SOURCE has more than one component. % % [M, S...
github
foucart/Basc-master
reduce.m
.m
Basc-master/basc_v1.0/chebfun-master/@ultraS/reduce.m
2,293
utf_8
c7b483e291409ed4af2cdb6f49417903
function [PA, P, PS] = reduce(disc, A, S) %REDUCE Dimension reduction for operator matrix. % PA = REDUCE(DISC, A) reduces the row dimension of each block column in the % cell array A (which is typically a discretization of DISC.SOURCE) so that % the reduced discretization, PA, can be formed as a matrix. In par...
github
foucart/Basc-master
smoothfun.m
.m
Basc-master/basc_v1.0/chebfun-master/@smoothfun/smoothfun.m
5,684
utf_8
70d580a5e5a807049ca6e559d00e22af
classdef smoothfun < onefun % (Abstract) %SMOOTHFUN Approximate smooth functions on [-1,1]. % Abstract (interface) class for approximating smooth functions on the % interval [-1,1]. % % Constructor inputs: % SMOOTHFUN.CONSTRUCTOR(OP, DATA, PREF) constructs a SMOOTHFUN object on the % interval [-1,1] from th...
github
foucart/Basc-master
roots.m
.m
Basc-master/basc_v1.0/chebfun-master/@chebfun2v/roots.m
46,177
utf_8
5ae9decf41b0f26b301e3e395a01dafa
function varargout = roots( F, varargin ) %ROOTS Find the common zeros of a CHEBFUN2V object. % r = ROOTS(F) finds the common zeros of the two bivariate functions F(1) and % F(2) in their domain of definition under the assumption that the solution % set is zero-dimensional. R is a matrix with two columns storin...
github
foucart/Basc-master
quiver3.m
.m
Basc-master/basc_v1.0/chebfun-master/@chebfun2v/quiver3.m
6,244
utf_8
4eca1a7d61e3c4825571e915117f2951
function varargout = quiver3( F, varargin ) %QUIVER3 3-D quiver plot of a CHEBFUN2V. % QUIVER3(F) plots velocity vectors as arrows with components F(1), F(2), % F(3), which are CHEBFUN2 objects. QUIVER3 automatically scales the arrows to % fit. The arrows are plotted on a uniform grid. % % QUIVER3(Z,F) plots ...
github
foucart/Basc-master
display.m
.m
Basc-master/basc_v1.0/chebfun-master/@chebop2/display.m
1,791
utf_8
9f0defcc44c14c4164b790b1d765a9ff
function display(N) %DISPLAY Print to command line for CHEBOP2. % DISPLAY is called automatically when a statement that results in a % CHEBOP2 output is not terminated with a semicolon. % Copyright 2014 by The University of Oxford and The Chebfun Developers. % See http://www.chebfun.org/ for Chebfun information. lo...
github
foucart/Basc-master
denseSolve.m
.m
Basc-master/basc_v1.0/chebfun-master/@chebop2/denseSolve.m
4,735
utf_8
75c3ea63982a9b70049f7c8279d8451d
function X = denseSolve(N, f, m, n) %DENSESOLVE Given a fixed discretisation size, solve the differential equation using %a dense solver. % X = DENSESOLVE(N, F, M, N), returns a solution matrix X of values on a M by N % Chebyshev grid. % % For further details about the PDE solver, see: % A. Townsend and S. Olver,...
github
foucart/Basc-master
bartelsStewart.m
.m
Basc-master/basc_v1.0/chebfun-master/@chebop2/bartelsStewart.m
5,729
utf_8
94552215b0d7d529208e5ca3c11a5113
function X = bartelsStewart(A, B, C, D, E, xsplit, ysplit) %BARTELSSTEWART Solution to generalized Sylvester matrix equation. % % Computes the solution to the Sylvester equation % % AXB^T + CXD^T = E % % by using the Bartels--Stewart algorithm, see % % J. D. Gardiner, A. J. Laub, J. J. Amato, & C. B. Moler...
github
foucart/Basc-master
constructBC.m
.m
Basc-master/basc_v1.0/chebfun-master/@chebop2/constructBC.m
8,440
utf_8
e30ccefd745205fa7b778a3936279b97
function [bcrow, bcvalue] = constructBC(bcArg, bcpos, een, bcn, dom, scl, order) %CONSTRUCTBC Discretizes the boundary conditions. % % INPUTS: % bcArg = linear constraint, % bcpos = position of constraint in the other variable, % een = discretization size for bcvalue, % bcn = discretization size for bcrow,...
github
foucart/Basc-master
discretize.m
.m
Basc-master/basc_v1.0/chebfun-master/@chebop2/discretize.m
11,048
utf_8
0f0e551a09c23a670699074774e244b4
function [CC, rhs, bb, gg, Px, Py, xsplit, ysplit] = discretize(N, f, m, n, flag) %DISCRETIZE Given a CHEBOP2, this function converts the problem to one of the form % % sum_i kron(A_i,B_i) % % and computes the discretisation as a cell array: % % {{ % % A_1 , B_1 % A_2 , B_2 % . , . % ....
github
foucart/Basc-master
solvepde.m
.m
Basc-master/basc_v1.0/chebfun-master/@chebop2/solvepde.m
5,770
utf_8
2e1677301a19a19fc0cc92521dbd7dce
function u = solvepde(N, f, varargin) %SOLVEPDE Solve CHEBOP2 partial differential equation. % U = SOLVEPDE(N, F) is equivalent to U = N \ F and solves the linear partial % differential equation N(U) = F. % % U = SOLVEPDE(N, F, M, N) solves the PDE with a discretization size of % M-by-N. % % U = SO...
github
foucart/Basc-master
detectEdge.m
.m
Basc-master/basc_v1.0/chebfun-master/@fun/detectEdge.m
10,816
utf_8
cba2f9aa70696dea10f706d41c790beb
function edge = detectEdge(f, op, vscale, hscale, pref) %DETECTEDGE Edge detection. % EDGE = DETECTEDGE(F, OP, HSCALE, VSCALE, BLOWUP) detects a blowup in the % first, second, third, or fourth derivatives of OP in the domain of the FUN % F. HSCALE is the horizontal scale and VSCALE is the vertical scale (note...
github
foucart/Basc-master
merge.m
.m
Basc-master/basc_v1.0/chebfun-master/@fun/merge.m
2,362
utf_8
799be82eb3580033c427d4caed7368d6
function [h, ishappy] = merge(f, g, vscale, hscale, pref) %MERGE Attempt to merge to FUN objects into a single object. % MERGE(F, G) attempts to merge two FUN objects on neighbouring domains to a % single FUN object on the combined domain. A warning is issued if the merge % isnot successful. % % [H, ISHAPPY] ...
github
foucart/Basc-master
cvx_version.m
.m
Basc-master/basc_v1.0/cvx/cvx_version.m
14,449
utf_8
9951ce947131c7cbbbe5d0019e7f2847
function varargout = cvx_version( varargin ) % CVX_VERSION Returns version and environment information for CVX. % % When called with no arguments, CVX_VERSION prints out version and % platform information that is needed when submitting CVX bug reports. % % This function is also used internally to return use...
github
foucart/Basc-master
HSDNTcorr.m
.m
Basc-master/basc_v1.0/cvx/sdpt3/HSDSolver/HSDNTcorr.m
1,001
utf_8
c42eba1c6bae660b88921b7c8747490e
%%************************************************************************ %% HSDNTcorr: corrector step for the NT direction. %% %% SDPT3: version 3.1 %% Copyright (c) 1997 by %% K.C. Toh, M.J. Todd, R.H. Tutuncu %% Last Modified: 16 Sep 2004 %%************************************************************************ f...
github
foucart/Basc-master
HSDHKMdirfun.m
.m
Basc-master/basc_v1.0/cvx/sdpt3/HSDSolver/HSDHKMdirfun.m
1,551
utf_8
1034e25e48a42d2fa143f93f47961fe9
%%******************************************************************* %% HSDHKMdirfun: compute (dX,dZ), given dy, for the HKM direction. %% %% SDPT3: version 3.1 %% Copyright (c) 1997 by %% K.C. Toh, M.J. Todd, R.H. Tutuncu %% Last Modified: 16 Sep 2004 %%****************************************************************...
github
foucart/Basc-master
HSDsqlp.m
.m
Basc-master/basc_v1.0/cvx/sdpt3/HSDSolver/HSDsqlp.m
11,860
utf_8
00b8311a8efbee36662ca9288870a1cd
%%***************************************************************************** %% HSDsqlp: solve an semidefinite-quadratic-linear program %% by infeasible path-following method on the homogeneous self-dual model. %% %% [obj,X,y,Z,info,runhist] = %% HSDsqlp(blk,At,C,b,OPTIONS,X0,y0,Z0); %% %% Input: blk: a cel...
github
foucart/Basc-master
HSDsortA.m
.m
Basc-master/basc_v1.0/cvx/sdpt3/HSDSolver/HSDsortA.m
2,577
utf_8
0a74ddbb8a0c79bf22592d780d865e06
%%********************************************************************* %% sortA: sort columns of At{p} in ascending order according to the %% number of nonzero elements. %% %% [At,C,b,X0,Z0,permA,permZ] = sortA(blk,At,C,b,X0,Z0); %% %% SDPT3: version 3.1 %% Copyright (c) 1997 by %% K.C. Toh, M.J. Todd, R.H. Tut...
github
foucart/Basc-master
HSDHKMrhsfun.m
.m
Basc-master/basc_v1.0/cvx/sdpt3/HSDSolver/HSDHKMrhsfun.m
2,666
utf_8
16409ae4672f80ef54a33c31ef30000f
%%******************************************************************* %% HSDHKMrhsfun: compute the right-hand side vector of the %% Schur complement equation for the HKM direction. %% %% SDPT3: version 3.1 %% Copyright (c) 1997 by %% K.C. Toh, M.J. Todd, R.H. Tutuncu %% Last Modified: 16 Sep 2004 %%*****...
github
foucart/Basc-master
HSDsqlpcheckconvg.m
.m
Basc-master/basc_v1.0/cvx/sdpt3/HSDSolver/HSDsqlpcheckconvg.m
6,249
utf_8
a579e4972fd77d5cc3e11b72bf56d3a9
%%***************************************************************************** %% HSDsqlpcheckconvg: check convergence. %% %% ZpATynorm, AX, normX, normZ are with respect to the %% original variables, not the HSD variables. %% %% SDPT3: version 3.1 %% Copyright (c) 1997 by %% K.C. Toh, M.J. Todd, R.H. Tutuncu %% Last ...
github
foucart/Basc-master
HSDNTdirfun.m
.m
Basc-master/basc_v1.0/cvx/sdpt3/HSDSolver/HSDNTdirfun.m
1,459
utf_8
a045827a3ca1adcf8806cfd8234ad5e4
%%******************************************************************* %% HSDNTdirfun: compute (dX,dZ), given dy, for the NT direction. %% %% SDPT3: version 3.1 %% Copyright (c) 1997 by %% K.C. Toh, M.J. Todd, R.H. Tutuncu %% Last Modified: 16 Sep 2004 %%******************************************************************...
github
foucart/Basc-master
HSDNTrhsfun.m
.m
Basc-master/basc_v1.0/cvx/sdpt3/HSDSolver/HSDNTrhsfun.m
3,424
utf_8
02348c55d691a53b023639b8103757be
%%******************************************************************* %% HSDNTrhsfun: compute the right-hand side vector of the %% Schur complement equation for the NT direction. %% %% SDPT3: version 3.1 %% Copyright (c) 1997 by %% K.C. Toh, M.J. Todd, R.H. Tutuncu %% Last Modified: 16 Sep 2004 %%*********...
github
foucart/Basc-master
HSDHKMpred.m
.m
Basc-master/basc_v1.0/cvx/sdpt3/HSDSolver/HSDHKMpred.m
2,644
utf_8
81b89c36e0d0bad30836c551264a6a05
%%******************************************************************* %% HSDHKMpred: Compute (dX,dy,dZ) for the H..K..M direction. %% %% SDPT3: version 3.1 %% Copyright (c) 1997 by %% K.C. Toh, M.J. Todd, R.H. Tutuncu %% Last Modified: 16 Sep 2004 %%******************************************************************* f...
github
foucart/Basc-master
HSDsqlpmain.m
.m
Basc-master/basc_v1.0/cvx/sdpt3/HSDSolver/HSDsqlpmain.m
28,654
utf_8
cbc2660c53cf6f4c6ea3de740ec45966
%%***************************************************************************** %% HSDsqlp: solve an semidefinite-quadratic-linear program %% by infeasible path-following method on the homogeneous self-dual model. %% %% [obj,X,y,Z,info,runhist] = %% HSDsqlp(blk,At,C,b,OPTIONS,X0,y0,Z0,kap0,tau0,theta0); %% %% ...
github
foucart/Basc-master
HSDlinsysolve.m
.m
Basc-master/basc_v1.0/cvx/sdpt3/HSDSolver/HSDlinsysolve.m
6,495
utf_8
0644ae75443d221edcf585f5a5736fe5
%%*************************************************************** %% linsysolve: solve linear system to get dy, and direction %% corresponding to unrestricted variables. %% %% [xx,coeff,L,resnrm] = linsysolve(schur,UU,EE,Bmat,rhs); %% %% child functions: mybicgstable.m %% %% SDPT3: version 3.1 %% Copyright ...
github
foucart/Basc-master
HSDsqlpmisc.m
.m
Basc-master/basc_v1.0/cvx/sdpt3/HSDSolver/HSDsqlpmisc.m
3,299
utf_8
f36316ddff8099a74241fa1590fc584a
%%***************************************************************************** %% HSDsqlpmisc: %% produce infeasibility certificates if appropriate %% %% Input: X,y,Z are the original variables, not the HSD variables. %% %% SDPT3: version 3.1 %% Copyright (c) 1997 by %% K.C. Toh, M.J. Todd, R.H. Tutuncu %% Last Modifi...
github
foucart/Basc-master
HSDbicgstab.m
.m
Basc-master/basc_v1.0/cvx/sdpt3/HSDSolver/HSDbicgstab.m
3,084
utf_8
96ee9f939e0b2527113539aa0b633ffc
%%************************************************************************* %% HSDbicgstab %% %% [xx,resnrm,flag] = HSDbicgstab(A,b,M1,tol,maxit) %% %% iterate on bb - (M1)*AA*x %% %% r = b-A*xtrue; %% %%************************************************************************* function [xx,resnrm,flag] = HSDbicgstab(...
github
foucart/Basc-master
HSDHKMcorr.m
.m
Basc-master/basc_v1.0/cvx/sdpt3/HSDSolver/HSDHKMcorr.m
985
utf_8
1e1983a66956f1d3e4e8e279b1dbe2d0
%%***************************************************************** %% HSDHKMcorr: corrector step for the HKM direction. %% %% SDPT3: version 3.1 %% Copyright (c) 1997 by %% K.C. Toh, M.J. Todd, R.H. Tutuncu %% Last Modified: 16 Sep 2004 %%***************************************************************** function [par...
github
foucart/Basc-master
HSDNTpred.m
.m
Basc-master/basc_v1.0/cvx/sdpt3/HSDSolver/HSDNTpred.m
2,034
utf_8
e194daf53d375b24154b1caf94b7646d
%%********************************************************************** %% HSDNTpred: Compute (dX,dy,dZ) for NT direction. %% %% compute SVD of Xchol*Zchol via eigenvalue decompostion of %% Zchol * X * Zchol' = V * diag(sv2) * V'. %% compute W satisfying W*Z*W = X. %% W = G'*G, where G = diag(sqrt(sv)) * (inv...
github
foucart/Basc-master
HSDsqlpCpert.m
.m
Basc-master/basc_v1.0/cvx/sdpt3/HSDSolver/HSDsqlpCpert.m
2,263
utf_8
326ec0065ebb155fab5ee8b4670ec0db
%%***************************************************************************** %% HSDsqlpCpert: perturb C. %% %%***************************************************************************** function [At,Cpert] = HSDsqlpCpert(blk,At,par,C,X,Cpert,runhist) iter = length(runhist.pinfeas); prim_infeas = runhist.pinfeas(...
github
foucart/Basc-master
cheby0.m
.m
Basc-master/basc_v1.0/cvx/sdpt3/Examples/cheby0.m
2,576
utf_8
a31e95ee5e80694cd1c3f2ceb594d369
%%********************************************************** %% cheby0: %% %% minimize || p(d) ||_infty %% p = polynomial of degree <= m such that p(0) = 1. %% %% Here d = n-vector %%---------------------------------------------------------- %% [blk,Avec,C,b,X0,y0,Z0,objval,p] = cheby0(d,m,solve); %% %% d ...
github
foucart/Basc-master
randmat.m
.m
Basc-master/basc_v1.0/cvx/sdpt3/Solver/randmat.m
811
utf_8
483225eceeb882378d1a6fc61914a4be
%%****************************************************** %% randmat: generate an mxn matrix using matlab's %% rand or randn functions using state = k. %% %%****************************************************** function v = randmat(m,n,k,randtype) try s = rng; rng(k); if strcmp(randtype,...
github
foucart/Basc-master
skron.m
.m
Basc-master/basc_v1.0/cvx/sdpt3/Solver/skron.m
1,389
utf_8
3aba6bed9dc50b45f766b4a8620c4ac3
%%*********************************************************************** %% skron: Find the matrix presentation of %% symmetric kronecker product skron(A,B), where %% A,B are symmetric. %% %% Important: A,B are assumed to be symmetric. %% %% K = skron(blk,A,B); %% %% blk: a cell array specifying the b...
github
foucart/Basc-master
NTcorr.m
.m
Basc-master/basc_v1.0/cvx/sdpt3/Solver/NTcorr.m
1,315
utf_8
458c52ec6bf00d3507df137889a53c7e
%%************************************************************************ %% NTcorr: corrector step for the NT direction. %% %% SDPT3: version 3.1 %% Copyright (c) 1997 by %% K.C. Toh, M.J. Todd, R.H. Tutuncu %% Last Modified: 16 Sep 2004 %%************************************************************************ func...
github
foucart/Basc-master
HKMcorr.m
.m
Basc-master/basc_v1.0/cvx/sdpt3/Solver/HKMcorr.m
1,313
utf_8
ff69a87fe927bf7f964fd55cbf7ec718
%%***************************************************************** %% HKMcorr: corrector step for the HKM direction. %% %% SDPT3: version 3.1 %% Copyright (c) 1997 by %% K.C. Toh, M.J. Todd, R.H. Tutuncu %% Last Modified: 16 Sep 2004 %%***************************************************************** function [dX,dy,...
github
foucart/Basc-master
steplength.m
.m
Basc-master/basc_v1.0/cvx/sdpt3/Solver/steplength.m
5,590
utf_8
2b52f7d5b9712cf17885f9ca3eaeb666
%%*************************************************************************** %% steplength: compute xstep such that X + xstep*dX >= 0. %% %% [xstep] = steplength(blk,X,dX,Xchol,invXchol); %% %% SDPT3: version 3.1 %% Copyright (c) 1997 by %% K.C. Toh, M.J. Todd, R.H. Tutuncu %% Last Modified: 16 Sep 2004 %%***********...
github
foucart/Basc-master
SDPT3data_SEDUMIdata.m
.m
Basc-master/basc_v1.0/cvx/sdpt3/Solver/SDPT3data_SEDUMIdata.m
3,843
utf_8
26106829dfa4c0fbb1ca8c4aa9839fa8
%%********************************************************** %% SDPT3data_SEDUMIdata: convert SQLP data in SDPT3 format to %% SeDuMi format %% %% [At,b,c,K] = SDPT3data_SEDUMIdata(blk,AAt,CC,bb); %% %% SDPT3: version 3.1 %% Copyright (c) 1997 by %% K.C. Toh, M.J. Todd, R.H. Tutuncu %% Last Modifie...
github
foucart/Basc-master
schurmat_sblk.m
.m
Basc-master/basc_v1.0/cvx/sdpt3/Solver/schurmat_sblk.m
4,549
utf_8
f992891144a934ab4edffde2a692e435
%%******************************************************************* %% schurmat_sblk: compute Schur complement matrix corresponding to %% SDP blocks. %% %% symm = 0, HKM %% = 1, NT %% %% SDPT3: version 3.1 %% Copyright (c) 1997 by %% K.C. Toh, M.J. Todd, R.H. Tutuncu %% Last Modified: 16 Sep 2004 ...
github
foucart/Basc-master
blktrace.m
.m
Basc-master/basc_v1.0/cvx/sdpt3/Solver/blktrace.m
2,084
utf_8
6a5c3d9ff74073a8e864c246727eaa86
%%********************************************************************** %% blktrace: compute <X1,Z1> + ... + <Xp,Zp> %% %% SDPT3: version 3.1 %% Copyright (c) 1997 by %% K.C. Toh, M.J. Todd, R.H. Tutuncu %% Last Modified: 16 Sep 2004 %%********************************************************************** function tr...
github
foucart/Basc-master
sqlpu2lblk.m
.m
Basc-master/basc_v1.0/cvx/sdpt3/Solver/sqlpu2lblk.m
3,099
utf_8
1a67e45c349d19614e890521aed11db5
%%*************************************************************************** %% sqlpu2lblk: decide whether to convert ublk to lblk %% %% SDPT3: version 3.1 %% Copyright (c) 1997 by %% K.C. Toh, M.J. Todd, R.H. Tutuncu %% Last Modified: 10 Jul 2007 %%*********************************************************************...
github
foucart/Basc-master
Prod3.m
.m
Basc-master/basc_v1.0/cvx/sdpt3/Solver/Prod3.m
1,677
utf_8
2ee9f0d732e5ea1f326bfcf275b0da3c
%%************************************************************ %% Prod3: compute the entries of Q = A*B*C specified in %% nzlistQ. %% %% Q = Prod3(blk,A,B,C,sym,nzlistQ) %% Important: (a) A is assumed to be symmetric if nzlistQ %% has 2 columns (since mexProd2nz computes A'*B). %% (b) T...
github
foucart/Basc-master
sqlptermcode.m
.m
Basc-master/basc_v1.0/cvx/sdpt3/Solver/sqlptermcode.m
1,230
utf_8
40b494719c3c614b6196dd9846778c4c
%%************************************************************************* %% sqlptermcode.m: explains the termination code in sqlp.m %% %% %% SDPT3: version 3.1 %% Copyright (c) 1997 by %% K.C. Toh, M.J. Todd, R.H. Tutuncu %% Last Modified: 16 Sep 2004 %%***************************************************************...