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 | dgolden1/vlf_software-master | batch_clean_data.m | .m | vlf_software-master/chorus_hiss_coherence/batch_clean_data.m | 11,234 | utf_8 | 9712cf9bf303a552534f15687b7d7fa8 | function batch_clean_data(proc_type, input_dir, subdirs, output_dir, b_start_over)
% Function to clean a whole lot of data of sferics and hum
% batch_clean_data(proc_type, input_dir, subdirs, output_dir, b_start_over)
% Source is raw data
% Output is 10 seconds of one channel channel of 2-channel
% AWESOME data, cleane... |
github | dgolden1/vlf_software-master | remove_sferics_and_hum.m | .m | vlf_software-master/chorus_hiss_coherence/remove_sferics_and_hum.m | 10,700 | utf_8 | 03e54fb1dcc39b83a12bed4c41991d96 | function output_filenames = remove_sferics_and_hum(output_dir, input_dir, input_filenames, station_name, cal_datenum, fs_dec, channel)
% Scripts to use Dan's sferic removal and Morris and Ryan's hum removal
% on a bunch of files and resave them
%
% output_filenames = remove_sferics_and_hum(output_dir, input_dir, input... |
github | dgolden1/vlf_software-master | emission_db_corrector.m | .m | vlf_software-master/chorus_hiss_coherence/emission_db_corrector.m | 33,460 | utf_8 | 285dab828f04c7148f3a693c568b506f | function varargout = emission_db_corrector(varargin)
% EMISSION_DB_CORRECTOR M-file for emission_db_corrector.fig
% EMISSION_DB_CORRECTOR, by itself, creates a new EMISSION_DB_CORRECTOR or raises the existing
% singleton*.
%
% H = EMISSION_DB_CORRECTOR returns the handle to a new EMISSION_DB_CORRECTOR or... |
github | dgolden1/vlf_software-master | emission_db_characterizer.m | .m | vlf_software-master/chorus_hiss_coherence/emission_db_characterizer.m | 31,331 | utf_8 | bb57f0bbe13636e62998bce94dc42986 | function varargout = emission_db_characterizer(varargin)
% EMISSION_DB_CHARACTERIZER M-file for emission_db_characterizer.fig
% EMISSION_DB_CHARACTERIZER, by itself, creates a new EMISSION_DB_CHARACTERIZER or raises the existing
% singleton*.
%
% H = EMISSION_DB_CHARACTERIZER returns the handle to a new ... |
github | dgolden1/vlf_software-master | create_event_catalog.m | .m | vlf_software-master/chorus_hiss_coherence/create_event_catalog.m | 4,608 | utf_8 | de86d67ad2ab5701714c2cbd1ab7c238 | function create_event_catalog(db_filename, output_dir, start_datenum, end_datenum)
% create_event_catalog(db_filename, output_dir, start_datenum, end_datenum)
% Create a catalog of known emissions
% By Daniel Golden (dgolden1 at stanford dot edu) September 2010
% $Id$
%% Setup
if ~exist('start_datenum', 'var') || ise... |
github | dgolden1/vlf_software-master | find_events_southpole.m | .m | vlf_software-master/chorus_hiss_coherence/find_events_southpole.m | 4,983 | utf_8 | b34c914764a93bd5ea199ae6115d7d46 | function event_struct = find_events_southpole
% Find events in south pole data
%
% This separate function is necessary because
% a) Only low frequency chorus and super-broadband auroral hiss are present
% at the south pole, the latter of which can't be easily detected using my
% current peak detector and
% b) The so... |
github | dgolden1/vlf_software-master | batch_find_events.m | .m | vlf_software-master/chorus_hiss_coherence/batch_find_events.m | 10,625 | utf_8 | 0473ac422b86673e63cf1d000c4b88ef | function batch_find_events(input_dir, subdirs, output_dir, sitename)
% batch_find_events(input_dir, subdirs, output_dir)
% Script to attempt to detect events in cleaned broadband data
%
% Creates an "events" file listing events for each processed directory
% (day) of data
%
% INPUTS
% input_dir is a directory contain... |
github | dgolden1/vlf_software-master | create_event_catalog_by_date.m | .m | vlf_software-master/chorus_hiss_coherence/create_event_catalog_by_date.m | 4,683 | utf_8 | 4f27a4b7d66888defacaa1bb04ab9a36 | function create_event_catalog_by_date(db_filename, output_dir, start_datenum, end_datenum)
% create_event_catalog(db_filename, output_dir, start_datenum, end_datenum)
% Create a catalog of synoptic epochs, with events labeled, if any
% By Daniel Golden (dgolden1 at stanford dot edu) September 2010
% $Id$
%% Setup
add... |
github | dgolden1/vlf_software-master | notate_emission_gui.m | .m | vlf_software-master/chorus_hiss_coherence/notate_emission_gui/notate_emission_gui.m | 21,442 | utf_8 | 6eaa846a011aa8a7c5fddf1fe5910392 | function varargout = notate_emission_gui(varargin)
% NOTATE_EMISSION_GUI M-file for notate_emission_gui.fig
% NOTATE_EMISSION_GUI, by itself, creates a new NOTATE_EMISSION_GUI or raises the existing
% singleton*.
%
% H = NOTATE_EMISSION_GUI returns the handle to a new NOTATE_EMISSION_GUI or the handle to... |
github | dgolden1/vlf_software-master | sp_emission_db_characterizer_old.m | .m | vlf_software-master/chorus_hiss_coherence/southpole/sp_emission_db_characterizer_old.m | 29,047 | utf_8 | ac3ffcf48567b082a06035ee53f94822 | function varargout = sp_emission_db_characterizer_old(varargin)
% SP_EMISSION_DB_CHARACTERIZER_OLD M-file for sp_emission_db_characterizer_old.fig
% SP_EMISSION_DB_CHARACTERIZER_OLD, by itself, creates a new SP_EMISSION_DB_CHARACTERIZER_OLD or raises the existing
% singleton*.
%
% H = SP_EMISSION_DB_CHAR... |
github | dgolden1/vlf_software-master | batch_make_sp_log_specs.m | .m | vlf_software-master/chorus_hiss_coherence/southpole/batch_make_sp_log_specs.m | 3,107 | utf_8 | 927e770ebef47150a61134249508daca | function batch_make_sp_log_specs(input_dir, output_dir)
% Pre-calulate a bunch of log-spectrograms of south pole data
%
% batch_make_sp_log_specs(input_dir, output_dir)
% By Daniel Golden (dgolden1 at stanford dot edu) May 2011
% $Id$
%% Input arguments
if ~exist('input_dir', 'var')
% input_dir = '~/output/southpo... |
github | dgolden1/vlf_software-master | plot_palmer_chorus_hiss_cum_specs.m | .m | vlf_software-master/chorus_hiss_coherence/southpole/plot_palmer_chorus_hiss_cum_specs.m | 2,887 | utf_8 | f0d24791e689d6abc904697f0cf9a598 | function plot_palmer_chorus_hiss_cum_specs(events)
% Plot radial cumulative spectrograms of chorus and hiss at Palmer
% By Daniel Golden (dgolden1 at stanford dot edu) November 2011
% $Id$
%% Setup
% load /home/dgolden/vlf/case_studies/chorus_hiss_detection/databases/auto_chorus_hiss_db_em_char_all_reprocessed.mat
cl... |
github | dgolden1/vlf_software-master | sp_create_neural_network_inputs.m | .m | vlf_software-master/chorus_hiss_coherence/southpole/sp_create_neural_network_inputs.m | 5,474 | utf_8 | a72abf7b31050e35bd7f3ab65441645f | function varargout = sp_create_neural_network_inputs(b_training, start_datenum, end_datenum)
% Create inputs and targets for neural network
%
% [nn_inputs, start_datenums, nn_chorus_targets, nn_hiss_targets] = sp_create_neural_network_inputs(b_training, start_datenum, end_datenum)
%
% if b_training, then inputs and t... |
github | dgolden1/vlf_software-master | sp_plot_cum_spec.m | .m | vlf_software-master/chorus_hiss_coherence/southpole/sp_plot_cum_spec.m | 2,095 | utf_8 | 1078f70fd2458122228495be40085aff | function sp_plot_cum_spec
% Main function to plot south pole cumulative spectrograms
% By Daniel Golden (dgolden1 at stanford dot edu) May 2011
% $Id$
%% Setup
addpath(fullfile(danmatlabroot, 'vlf', 'emission_statistics')); % For plot_cum_spec_v4
load(fullfile(vlfcasestudyroot, 'southpole_emissions', 'nnet_output_20... |
github | dgolden1/vlf_software-master | sp_plot_nnet_output.m | .m | vlf_software-master/chorus_hiss_coherence/southpole/sp_plot_nnet_output.m | 728 | utf_8 | fd7c523d3c5709f8dfa54d3aa5e990e6 | function sp_plot_nnet_output
% Plot the output of the neural network in some fancy way
function plot_hist_by_tod
% Histogram of occurrence by time of day
load nnet_output_2001.mat
edges = (0:24)/24;
nc = histc(fpart(chorus_datenums), edges); nc = nc(1:end-1);
nh = histc(fpart(hiss_datenums), edges); nh = nh(1:end-1)... |
github | dgolden1/vlf_software-master | sp_emission_db_characterizer.m | .m | vlf_software-master/chorus_hiss_coherence/southpole/sp_emission_db_characterizer.m | 36,311 | utf_8 | d8b6362d18b15b091de93606fe4ef5d7 | function varargout = sp_emission_db_characterizer(varargin)
% SP_EMISSION_DB_CHARACTERIZER MATLAB code for sp_emission_db_characterizer.fig
% SP_EMISSION_DB_CHARACTERIZER, by itself, creates a new SP_EMISSION_DB_CHARACTERIZER or raises the existing
% singleton*.
%
% H = SP_EMISSION_DB_CHARACTERIZER retur... |
github | dgolden1/vlf_software-master | mapTool.m | .m | vlf_software-master/newMapTool/mapTool.m | 24,963 | utf_8 | 948e519a71bd686c42ac730ba64c262e | function varargout = mapTool(varargin)
% MAPTOOL M-file for mapTool.fig
% MAPTOOL, by itself, creates a new MAPTOOL or raises the existing
% singleton*.
%
% H = MAPTOOL returns the handle to a new MAPTOOL or the handle to
% the existing singleton*.
%
% MAPTOOL('CALLBACK',hObject,eventDa... |
github | dgolden1/vlf_software-master | create_event_catalog.m | .m | vlf_software-master/synoptic_summary_emission_characterizer/create_event_catalog.m | 3,821 | utf_8 | 02fb7229a36ab6a1cb03a8969b82195e | function create_event_catalog(start_datenum, end_datenum)
% Create a catalog of all known emissions
% By Daniel Golden (dgolden1 at stanford dot edu)
% $Id$
%% Setup
if ~exist('start_datenum', 'var') || isempty(start_datenum)
start_datenum = 0;
end
if ~exist('end_datenum', 'var') || isempty(end_datenum)
end_datenum... |
github | dgolden1/vlf_software-master | emission_char_gui.m | .m | vlf_software-master/synoptic_summary_emission_characterizer/emission_char_gui.m | 41,821 | utf_8 | 6719f1c66114fc3ce3c0028778de28fe | function varargout = emission_char_gui(varargin)
% EMISSION_CHAR_GUI M-file for emission_char_gui.fig
% EMISSION_CHAR_GUI, by itself, creates a new EMISSION_CHAR_GUI or raises the existing
% singleton*.
%
% H = EMISSION_CHAR_GUI returns the handle to a new EMISSION_CHAR_GUI or the handle to
% the ex... |
github | dgolden1/vlf_software-master | convert_interleaved_to_twochannel_gui.m | .m | vlf_software-master/convert_interl_to_twochan_gui/convert_interleaved_to_twochannel_gui.m | 9,104 | utf_8 | 929dd65d750772d94e3036e09f5e5ff6 | function varargout = convert_interleaved_to_twochannel_gui(varargin)
% CONVERT_INTERLEAVED_TO_TWOCHANNEL_GUI M-file for convert_interleaved_to_twochannel_gui.fig
% CONVERT_INTERLEAVED_TO_TWOCHANNEL_GUI, by itself, creates a new CONVERT_INTERLEAVED_TO_TWOCHANNEL_GUI or raises the existing
% singleton*.
%
% ... |
github | sir-avinash/geometry-toolbox-master | even_sample.m | .m | geometry-toolbox-master/even_sample.m | 2,009 | utf_8 | 1d30ba0d23065fd6540ed2803c83ed56 | %***********************************************************************
%
% CONVERTS A RANDOMLY SAMPLED SIGNAL SET INTO AN EVENLY SAMPLED
% SIGNAL SET (by interpolation)
%
% By : Haldun KOMSUOGLU
% Start : 07/23/1999
% Last : 07/23/1999
% Statue : Neural Model Research Material
% ... |
github | minhnhat93/lfa_sc-master | gd_fprop.m | .m | lfa_sc-master/GD/gd_fprop.m | 439 | utf_8 | 8994b62ff1566c3dd178648296527936 | function [Xout,A,Z]=dg_fprop(X,We1,S1,theta1,T1,We2,S2,theta2,T2,G,D)
% Syntax:
% [Xout,A,Z]=dg_fprop(X,We1,S1,theta1,T1,We2,S2,T2,theta2,G,D)
[a1,Z1,C1,~]=lista_fprop(X,We1,S1,theta1,T1);
y=G*a1;
[a2,Z2,C2,~]=lista_fprop(y,We2,S2,theta2,T2);
Xout=D*a2;
A=cat(1,tocell(Z1),y,tocell(Z2),Xout);
Z=cat(1,tocell(... |
github | minhnhat93/lfa_sc-master | coordl1breg.m | .m | lfa_sc-master/alt/cod/coordl1breg.m | 3,436 | utf_8 | 5ce2eb78d177859712a16ed570359985 | function [u,Energy] = coordl1breg(A,f,lambda,varargin)
%COORDL1BREG Linearly-constrained L1 minimization with coordinate descent
% u = COORDL1BREG(A,f,lambda) solves the minimization problem
%
% min_u ||u||_1 subject to A*u = f
%
% where A is an MxN matrix and f is a vector of length M. Input lambda
% ... |
github | minhnhat93/lfa_sc-master | coordlsl1.m | .m | lfa_sc-master/alt/cod/coordlsl1.m | 3,014 | utf_8 | e4285528a538a086f3a7fe125c8db454 | function [v,Energy] = coordlsl1(A,f,lambda,varargin)
%COORDLSL1 Least-squares L1 minimization with coordinate descent
% u = COORDLSL1(A,f,lambda) solves the minimization problem
%
% min_u ||u||_1 + lambda ||A*u - f||_2^2
%
% where A is an MxN matrix and f is a vector of length M.
%
% COORDLSL1(...,'PARAM1',... |
github | jhausser/ParTI-master | freezeColors.m | .m | ParTI-master/freezeColors.m | 10,084 | utf_8 | c391c17641741effdd19084bb2b1ba06 | function freezeColors(varargin)
% freezeColors Lock colors of plot, enabling multiple colormaps per figure. (v2.3)
%
% Problem: There is only one colormap per figure. This function provides
% an easy solution when plots using different colomaps are desired
% in the same figure.
%
% freezeColors... |
github | jhausser/ParTI-master | rotlorentz.m | .m | ParTI-master/SeDuMi_1_3/rotlorentz.m | 1,734 | utf_8 | 2360f679ed280039c549592a3c993aff | % c = rotlorentz(c,K)
% Rotates vectors from Qcone to Rcone or from Rcone into Qcone.
%
% ********** INTERNAL FUNCTION OF SEDUMI **********
%
% See also sedumi
function c = rotlorentz(c,K)
%
% This file is part of SeDuMi 1.1 by Imre Polik and Oleksandr Romanko
% Copyright (C) 2005 McMaster University, Ham... |
github | jhausser/ParTI-master | PopK.m | .m | ParTI-master/SeDuMi_1_3/PopK.m | 2,058 | utf_8 | f5d78e3b27636285dfc03b5da8fcbc93 | % [y, ddotx, Dx, xTy] = PopK(d,x,K,lpq)
% POPK Implements the quadratic operator for symmetric cones K.
%
% ********** INTERNAL FUNCTION OF SEDUMI **********
%
% See also sedumi
function [y, ddotx, Dx, xTy] = PopK(d,x,K,lpq)
%
% This file is part of SeDuMi 1.1 by Imre Polik and Olek... |
github | jhausser/ParTI-master | updtransfo.m | .m | ParTI-master/SeDuMi_1_3/updtransfo.m | 4,731 | utf_8 | c73de722512195da9daad6fa6bf75a0d | % [d,vfrm] = updtransfo(x,z,w, dIN,K)
% UPDTRANSFO Updated the Nesterov-Todd transformation using a
% numerically stable method.
%
% ********** INTERNAL FUNCTION OF SEDUMI **********
%
% See also sedumi
function [d,vfrm] = updtransfo(x,z,w, dIN,K)
%
% This file is par... |
github | jhausser/ParTI-master | symbcholden.m | .m | ParTI-master/SeDuMi_1_3/symbcholden.m | 2,555 | utf_8 | ba6fe026b0102d1fd909b6903c62aa1f | % Lden = symbcholden(L,dense,DAt)
% SYMBCHOLDEN Creates Lden.{LAD, perm,dz, sign, first}
%
% ******************** INTERNAL FUNCTION OF SEDUMI ********************
%
% See also sedumi, dpr1fact
function Lden = symbcholden(L,dense,DAt)
%
% This file is part of SeDuMi ... |
github | jhausser/ParTI-master | psdinvscale.m | .m | ParTI-master/SeDuMi_1_3/psdinvscale.m | 2,422 | utf_8 | 06f82b385e12594de31afb4f00a28806 | % y = psdinvscale(ud,x,K ,transp)
% PSDINVSCALE Computes length lenud (=sum(K.s.^2)) vector y.
% Computes y = D(d^{-1}) x with d in K.
% Y = Ud' \ X / Ud
% ********** INTERNAL FUNCTION OF SEDUMI **********
%
% See also scaleK, factorK.
function y = psdinvscale(... |
github | jhausser/ParTI-master | eyeK.m | .m | ParTI-master/SeDuMi_1_3/eyeK.m | 1,833 | utf_8 | 3e5751a6b689151b000068b15e4c6e3f | % eyeK Identity w.r.t. symmetric cone.
% x = eyeK(K) produces the identity solution w.r.t. the symmetric cone,
% that is described by the structure K. This is the vector for which
% eigK(x) is the all-1 vector.
%
% See also eigK.
function x = eyeK(K)
% This file is part of SeDuMi 1.1 by Imre Poli... |
github | jhausser/ParTI-master | sparfwslv.m | .m | ParTI-master/SeDuMi_1_3/sparfwslv.m | 2,276 | utf_8 | b0e876743c52edb4ceb0cee125503411 | % SPARFWSLV Solves block sparse upper-triangular system.
% y = sparfwslv(L,b) yields the same result as
% y = L.L\b(L.perm,:)
% However, SPARFWSLV is faster than the built-in operator "\",
% because it uses dense linear algebra and loop-unrolling on
% supernodes.
%
% For sparse b, one... |
github | jhausser/ParTI-master | fwdpr1.m | .m | ParTI-master/SeDuMi_1_3/fwdpr1.m | 1,880 | utf_8 | 750b7c554452e985b5efa0cf663e2a6f | % y = fwdpr1(Lden, b)
% FWDPR1 Solves "PROD_k L(pk,betak) * y = b", where
% where L(p,beta) = eye(n) + tril(p*beta',-1).
%
% ********** INTERNAL FUNCTION OF SEDUMI **********
%
% See also sedumi, dpr1fact, bwdpr1
function y = fwdpr1(Lden, b)
%
% ... |
github | jhausser/ParTI-master | sortnnz.m | .m | ParTI-master/SeDuMi_1_3/sortnnz.m | 2,004 | utf_8 | 5787292e2973a25b28e10c4231898cd3 | % perm = sortnnz(At,Ajc1,Ajc2)
% SORTNNZ Sorts columns in At
% in increasing order of nnzs; only the nnzs between Ajc1 and Ajc2
% are considered for each column. If Ajc1 or Ajc2 is empty, we use
% the start or end of the columns in At.
%
% *******************... |
github | jhausser/ParTI-master | loopPcg.m | .m | ParTI-master/SeDuMi_1_3/loopPcg.m | 6,270 | utf_8 | c663b50c5b75f46e8f1ed2b8234e7b12 | % [y,k, DAy] = loopPcg(L,Lden,At,dense,d, DAt,K, b,p,ssqrNew,cgpars, restol)
%
% LOOPPCG Solve y from AP(d)A' * y = b
% using PCG-method and Cholesky L as conditioner.
% If L is sufficiently accurate, then only 1 CG-step is needed.
% It assumes that the previous step was p, with
% ssqrNew = bOld'*inv(L*THETA*L')*... |
github | jhausser/ParTI-master | finsymbden.m | .m | ParTI-master/SeDuMi_1_3/finsymbden.m | 2,134 | utf_8 | 6655ba7d4743010e2bc35c7b275189e9 | % Lden = finsymbden(LAD,perm,dz,firstq)
% FINSYMBDEN Updates perm and dz by inserting the
% last Lorentz trace columns (last columns of LAD). It creates the fields
% Lden.sign - +1 for "normal" columns, -1 for Lorentz trace columns
% Lden.first - First pivot column that will a... |
github | jhausser/ParTI-master | minpsdeig.m | .m | ParTI-master/SeDuMi_1_3/minpsdeig.m | 2,402 | utf_8 | 76851a44cd0651e86e2cc15f3f3a1a10 | % mineig = minpsdeig(x,K)
% MINPSDEIG Computes the smallest spectral coefficients of x w.r.t. K
% Uses an iterative method if the matrix is large, takes the minimum of all
% the eigenvalues if the matrix is small.
%
% ********** INTERNAL FUNCTION OF SEDUMI *********... |
github | jhausser/ParTI-master | getDAtm.m | .m | ParTI-master/SeDuMi_1_3/getDAtm.m | 2,007 | utf_8 | 34c7a3a2c33ccc2675038ad7141d5ac1 | % DAt = getDAtm(A,Ablkjc,dense,DAtdenq,d,K)
% GETDATM Computes d[k]'*Aj[k] for each lorentz block k and constraint j.
%
% ******************** INTERNAL FUNCTION OF SEDUMI ********************
%
% See also sedumi, getada2.
function DAt = getDAtm(A,Ablkjc,dense,DAtdenq,d,K)... |
github | jhausser/ParTI-master | findblks.m | .m | ParTI-master/SeDuMi_1_3/findblks.m | 2,043 | utf_8 | 3f129b5e60da81b88cd358b1cd2e6c3d | % Ablk = findblks(At,Ablkjc,blk0,blk1,blkstart)
% FINDBLKS Find nonzero blocks
% in A, with subscripts per column bounded bij Ablkjc([blk0,blk1]),
% block partitioned by blkstart.
% If blk0 < 1 (blk1 > size(Ablkjc,2)) then start (stop) searching at column
% start (end) of A.
%
% ... |
github | jhausser/ParTI-master | invcholfac.m | .m | ParTI-master/SeDuMi_1_3/invcholfac.m | 1,859 | utf_8 | 755e6abd3ff3729ea8ca73c9f551cf9e | % y = invcholfac(u,K, perm)
% INVCHOLFAC Computes y(perm,perm) = u' * u, with u upper triangular.
%
% ******************** INTERNAL FUNCTION OF SEDUMI ********************
%
% See also sedumi, getada3
function y = invcholfac(u,K, perm)
%
% This file is part ... |
github | jhausser/ParTI-master | qframeit.m | .m | ParTI-master/SeDuMi_1_3/qframeit.m | 1,773 | utf_8 | d09af1c0a97090bae278b9ab98bae212 | % x = qframeit(lab,frmq,K)
%
% *********************** INTERNAL FUNCTION OF SEDUMI *******************
%
% See also sedumi
% This file is part of SeDuMi 1.1 by Imre Polik and Oleksandr Romanko
% Copyright (C) 2005 McMaster University, Hamilton, CANADA (since 1.1)
%
% Copyright (C) 2001 Jos F. Sturm (up to ... |
github | jhausser/ParTI-master | incorder.m | .m | ParTI-master/SeDuMi_1_3/incorder.m | 2,194 | utf_8 | 97e815101c79e061951a6a6d797cdd88 | % [perm, dz] = incorder(At [,Ajc1,ifirst])
% INCORDER
% perm sorts the columns of At greedily, by iteratively picking
% the 1st unprocessed column with the least number of nonzero
% subscripts THAT ARE NOT YET COVERED (hence incremental) by
% the previously processed columns.
% dz... |
github | jhausser/ParTI-master | qreshape.m | .m | ParTI-master/SeDuMi_1_3/qreshape.m | 2,004 | utf_8 | 8858b2ff82c1d786a4839a098e36b22b | % y = qreshape(x,flag, K)
% QRESHAPE Reshuffles entries associated with Lorentz blocks.
% If flag = 0 then y = [x1 for each block; x2 for each block]
% If flag = 1 then y = [x block 1; x block 2; etc], etc
% Thus, x = qreshape(qreshape(x,0,K),1,K).
%
% *********... |
github | jhausser/ParTI-master | dpr1fact.m | .m | ParTI-master/SeDuMi_1_3/dpr1fact.m | 2,130 | utf_8 | a7d6a597603312764583d96eae64edd0 | % [Lden,L.d] = dpr1fact(x, d, Lsym, smult, maxu)
% DPR1FACT Factor d[iag] p[lus] r[ank] 1:
% [Lden,L.d] = dpr1fact(x, d, Lsym, smult, maxu)
% Computes fi and d such that
% diag(d_IN) + x*diag(smult)*x' =
%(PI_{i=1}^n L(p_OUT^i,beta_i)) * diag(d_OUT) * (PI_{i=1}^n L(p_OUT^... |
github | jhausser/ParTI-master | iswnbr.m | .m | ParTI-master/SeDuMi_1_3/iswnbr.m | 4,448 | utf_8 | c9e284b91161b0871549bd7f27bafcbf | % [delta,h,alpha] = iswnbr(vSQR,thetaSQR)
% ISWNBR Checks feasibility w.r.t. wide region/neighborhood of Sturm-Zhang.
% vTAR:= (1-alpha)*max(h,v) projection v onto theta-central region
% delta = (sqrt(n)/theta) * norm(vTAR - v) / norm(v)
%
% ********** INTERNAL FUNCTION OF SEDUMI *... |
github | jhausser/ParTI-master | fwblkslv.m | .m | ParTI-master/SeDuMi_1_3/fwblkslv.m | 2,004 | utf_8 | 29331f9be35273a4679f1718f0f770c1 | % FWBLKSLV Solves block sparse upper-triangular system.
% y = fwblkslv(L,b) yields the same result as
% y = L.L\b(L.perm,:)
% However, FWBLKSLV is faster than the built-in operator "\",
% because it uses dense linear algebra and loop-unrolling on
% supernodes.
%
% Typical use, with X ... |
github | jhausser/ParTI-master | trydif.m | .m | ParTI-master/SeDuMi_1_3/trydif.m | 2,561 | utf_8 | 188705faedb79d0ad34ec9dcdf8d1f2c | % [t,wr,w] = trydif(t,wrIN,wIN, x,z, pars,K)
% TRYDIF Tries feasibility of differentiated step length w.r.t.
% wide region and its neighborhood.
%
% ********** INTERNAL FUNCTION OF SEDUMI **********
%
% See also sedumi, stepdif
function [t,wr,w] = trydif(t,wrIN,wIN, x,z, pars,K)
%
% This... |
github | jhausser/ParTI-master | asmDxq.m | .m | ParTI-master/SeDuMi_1_3/asmDxq.m | 2,803 | utf_8 | 8d99cd2fd94ebd77f97312468887a518 | % y = asmDxq(d, x, K [, ddotx])
% ASMDXQ Assemble y = D(d)x for x in Lorentz part of K.
% [y,t] = AasmDxq(d, x, K [, ddotx]) then y[k]+t(k)*d[k] = D(dk)xk.
%
% ********** INTERNAL FUNCTION OF SEDUMI **********
%
% See also sedumi
function [y,t] = asmDxq(d, x, K, ddot... |
github | jhausser/ParTI-master | symfctmex.m | .m | ParTI-master/SeDuMi_1_3/symfctmex.m | 2,036 | utf_8 | f6b84d76ece75f7290517e625e446e0f | % [L,perm,xsuper,split,tmpsiz] = symfctmex(X, perm, cachsz)
% Computes sparse symbolic factor L, updated permutation PERM,
% super-node partition XSUPER, and a splitting of supernodes
% (SPLIT) to optimize use of the computer cache (assuming
% CACHSZ*1024 byte available). TMPSIZ is the amount of floating
... |
github | jhausser/ParTI-master | symbchol.m | .m | ParTI-master/SeDuMi_1_3/symbchol.m | 3,280 | utf_8 | b1399e65f8a5d81fa2cd34978f28f52d | % L = symbchol(X)
% SYMBCHOL Symbolic block sparse Cholesky factorization.
% L = symbchol(X) returns a structure L that can be used
% by the efficient block sparse Cholesky solver SPARCHOL.
% The fields in L have the following meaning:
%
% L.perm ... |
github | jhausser/ParTI-master | getsymbada.m | .m | ParTI-master/SeDuMi_1_3/getsymbada.m | 2,353 | utf_8 | 1cde359d723d90aa1e2d454be98d3642 | % SYMBADA = getsymbada(At,Ajc,DAt,psdblkstart)
% GETSYMBADA
% Ajc points to start of PSD-nonzeros per column
% DAt.q has the nz-structure of ddotA.
%
% ******************** INTERNAL FUNCTION OF SEDUMI ********************
%
% See also sedumi, partitA, getada1, getada2.
func... |
github | jhausser/ParTI-master | statsK.m | .m | ParTI-master/SeDuMi_1_3/statsK.m | 1,824 | utf_8 | 0a46c333f48d0aca7d2fbf79d3a0f760 | % K = statsK(K)
% STATSK Collects statistics (max and sum of dimensions) of cone K
%
% ******************** INTERNAL FUNCTION OF SEDUMI ********************
%
% See also sedumi
function K = statsK(K)
%
% This file is part of SeDuMi 1.1 by Imre Polik and Oleksa... |
github | jhausser/ParTI-master | qinvjmul.m | .m | ParTI-master/SeDuMi_1_3/qinvjmul.m | 2,473 | utf_8 | f77d40ca42c72f1e46286c5ac4b3d71c | % y = qinvjmul(labx,frmx,b,K)
% QINVJMUL Inverse of Jordan multiply for Lorentz blocks
%
% ********** INTERNAL FUNCTION OF SEDUMI **********
%
% See also sedumi
function y = qinvjmul(labx,frmx,b,K)
%
% This file is part of SeDuMi 1.1 by Imre Polik and Oleksandr Roman... |
github | jhausser/ParTI-master | whichcpx.m | .m | ParTI-master/SeDuMi_1_3/whichcpx.m | 1,811 | utf_8 | d327df172a4d2386a5a003c9b1b1c266 | % cpx = whichcpx(K)
% WHICHCPX yields structure cpx.{f,q,r,x}
%
% ******************** INTERNAL FUNCTION OF SEDUMI ********************
%
% See also sedumi
function cpx = whichcpx(K)
%
% This file is part of SeDuMi 1.1 by Imre Polik and Oleksandr Romanko
... |
github | jhausser/ParTI-master | triumtriu.m | .m | ParTI-master/SeDuMi_1_3/triumtriu.m | 2,016 | utf_8 | 64224c5cc11e9543095c85203848fc01 | % y = triumtriu(r,u,K)
% TRIUMTRIU Computes y = r * u
% Both r and u should be upper triangular.
%
% ********** INTERNAL FUNCTION OF SEDUMI **********
%
% See also sedumi
function y = triumtriu(r,u,K)
%
% This file is part of SeDuMi 1.1 by Imre Polik and Ol... |
github | jhausser/ParTI-master | getada2.m | .m | ParTI-master/SeDuMi_1_3/getada2.m | 1,955 | utf_8 | f11451d9ac4e7f81983e3db2b9b12e33 | % ADA = getada2(ADA, DAt,Aord, K)
% GETADA2 Compute ADA += DAt.q'*DAt.q
% IMPORTANT: Updated ADA only on triu(ADA(Aord.qperm,Aord.qperm)).
% Remaining entries are not affected.
%
% ******************** INTERNAL FUNCTION OF SEDUMI ********************
%
% See also sedu... |
github | jhausser/ParTI-master | urotorder.m | .m | ParTI-master/SeDuMi_1_3/urotorder.m | 1,843 | utf_8 | 3f00fac00ed650f384981a17ffb08e89 | % [u,perm,gjc,g] = urotorder(u,K, maxu,permIN)
% UROTORDER Stable reORDERing of triu U-factor by Givens ROTations.
%
% ********** INTERNAL FUNCTION OF SEDUMI **********
%
% See also sedumi
function [u,perm,gjc,g] = urotorder(u,K, maxu,permIN)
%
% This file is part of SeDuMi 1.1 by Im... |
github | jhausser/ParTI-master | extractA.m | .m | ParTI-master/SeDuMi_1_3/extractA.m | 2,236 | utf_8 | 931300071e3c261cefec875eb0a86600 | % Apart = extractA(At,Ajc,blk0,blk1,blkstart[,blkstart2])
% EXTRACTA Fast alternative to
% Apart = At(blkstart(1):blkstart(2)-1,:).
% Instead of blkstart(2), it takes "blkstart2" (if supplied) or
% size(At,1)+1 (if neither blkstart(2) nor blkstart2) are available.
%
% Extract submatrix of
% A ... |
github | jhausser/ParTI-master | veccomplex.m | .m | ParTI-master/SeDuMi_1_3/veccomplex.m | 3,079 | utf_8 | ba07f0641a238be5b9726d1798d6b8ae | % z = veccomplex(x,cpx,K)
% ********** INTERNAL FUNCTION OF SEDUMI **********
function z = veccomplex(x,cpx,K)
%
% This file is part of SeDuMi 1.1 by Imre Polik and Oleksandr Romanko
% Copyright (C) 2005 McMaster University, Hamilton, CANADA (since 1.1)
%
% Copyright (C) 2001 Jos F. Sturm (up to 1.05R5)
%... |
github | jhausser/ParTI-master | vec.m | .m | ParTI-master/SeDuMi_1_3/vec.m | 1,606 | utf_8 | 5478f392e563f694b197e427626d7462 | % Y = VEC(x) Given an m x n matrix x, this produces the vector Y of length
% m*n that contains the columns of the matrix x, stacked below each other.
%
% See also mat.
function x = vec(X)
%
% This file is part of SeDuMi 1.1 by Imre Polik and Oleksandr Romanko
% Copyright (C) 2005 McMaster University, Hami... |
github | jhausser/ParTI-master | sdinit.m | .m | ParTI-master/SeDuMi_1_3/sdinit.m | 4,613 | utf_8 | c23c6956e3a8fe19e16dfdd700b278eb | % [d, v,vfrm,y,y0, R] = sdinit(At,b,c,dense,K,pars)
% SDINIT Initialize with identity solution, for self-dual model.
%
% ********** INTERNAL FUNCTION OF SEDUMI **********
%
% See also sedumi
function [d, v,vfrm,y,y0, R] = sdinit(At,b,c,dense,K,pars)
%
% This file is part of SeD... |
github | jhausser/ParTI-master | psdscale.m | .m | ParTI-master/SeDuMi_1_3/psdscale.m | 6,304 | utf_8 | 3cf74e984e9d00ce8d8ed7aff240230d | % y = psdscale(ud,x,K [,transp])
% PSDSCALE Computes length lenud (=sum(K.s.^2)) vector y.
% !transp (default) then y[k] = vec(Ldk' * Xk * Ldk)
% transp == 1 then y[k] = vec(Udk' * Xk * Udk)
% Uses pivot ordering ud.perm if available and nonempty.
%
% ********** I... |
github | jhausser/ParTI-master | checkpars.m | .m | ParTI-master/SeDuMi_1_3/checkpars.m | 6,176 | utf_8 | 971e0b44a6edc0150d639e30dc50a98f | % pars = checkpars(pars,lponly)
% CHECKPARS Fills in defaults for missing fields in "pars" structure.
%
% ********** INTERNAL FUNCTION OF SEDUMI **********
%
% See also sedumi
function pars = checkpars(pars,lponly)
%
% This file is part of SeDuMi 1.1 by Imre Polik ... |
github | jhausser/ParTI-master | optstep.m | .m | ParTI-master/SeDuMi_1_3/optstep.m | 6,443 | utf_8 | 21b6cc713b5ef56473e77a8612c28512 | % [x,y] = optstep(A,b,c, y0,y,d,v,dxmdz, K,L,symLden,...
% dense,Ablkjc,Aord,ADA,DAt, feasratio, R,pars)
% OPTSTEP Implements Mehrotra-Ye type optimality projection for
% IPM-LP solver.
%
% ********** INTERNAL FUNCTION OF SEDUMI **********
%
% See also sedumi
function [x,y... |
github | jhausser/ParTI-master | pretransfo.m | .m | ParTI-master/SeDuMi_1_3/pretransfo.m | 12,688 | utf_8 | 881fbde15f9b3cf52ac3365f952ef57d | % [At,b,c,K,prep] = pretransfo(At,b,c,K)
% PRETRANSFO Checks data and then transforms into internal SeDuMi format.
%
% ********** INTERNAL FUNCTION OF SEDUMI **********
%
% See also sedumi
function [At,b,c,K,prep,origcoeff] = pretransfo(At,b,c,K,pars)
% This file is par... |
github | jhausser/ParTI-master | deninfac.m | .m | ParTI-master/SeDuMi_1_3/deninfac.m | 4,011 | utf_8 | ef6c9ab0007f59ec3cc9de9b7eb0650e | % [Lden, Ld] = deninfac(symLden, L,dense,DAt, d, absd, qblkstart,pars)
% DENINFAC
% Uses pars.maxuden as max. allowable |L(i,k)|. Otherwise num. reordering.
%
% ******************** INTERNAL FUNCTION OF SEDUMI ********************
%
% See also sedumi
function [Lden, Ld] = deninfac(symLden, L,dense,D... |
github | jhausser/ParTI-master | eigK.m | .m | ParTI-master/SeDuMi_1_3/eigK.m | 4,483 | utf_8 | f86d12675232384fa726b4e514ad8514 | % [lab,q,f] = eigK(x,K)
%
% EIGK Computes the spectral values ("eigenvalues") or even the complete
% spectral decomposition of a vector x with respect to a self-dual
% homogeneous cone K.
%
% > LAB = EIGK(x,K) This yield the spectral values of x wi... |
github | jhausser/ParTI-master | wrapPcg.m | .m | ParTI-master/SeDuMi_1_3/wrapPcg.m | 4,793 | utf_8 | 12cfcfe6ab49a7c989c04b51258c4c84 | % [y,r,k, DAy] = normeqPcg(L,Lden,At,dense,d, DAt,K, b, cgpars, y0,rhs)
%
% WRAPPCG Solve y from AP(d)A' * y = b
% using PCG-method and Cholesky L as conditioner.
% If L is sufficiently accurate, then only 1 CG-step is needed.
% In general, proceeds until ||DAy - DA'(AD^2A')^{-1}b||
% has converged (to zero).... |
github | jhausser/ParTI-master | tdet.m | .m | ParTI-master/SeDuMi_1_3/tdet.m | 1,737 | utf_8 | c2287c26212e36d77c3c07278bbe72c1 | % tdetx = tdet(x,K)
% TDET Computes twice determinant for Lorentz block
%
% ********** INTERNAL FUNCTION OF SEDUMI **********
%
% See also sedumi
function tdetx = tdet(x,K)
%
% This file is part of SeDuMi 1.1 by Imre Polik and Oleksandr Romanko
% Copyright (C) 2005... |
github | jhausser/ParTI-master | ordmmdmex.m | .m | ParTI-master/SeDuMi_1_3/ordmmdmex.m | 1,303 | utf_8 | 278c6d7ec0838f828ff3a5a213d3894f | % perm = ordmmdmex(adjncy)
% Computes multiple-minimum-degree permutation, for sparse
% Cholesky. Adjncy is a sparse symmetric matrix; its diagonal
% is irrelevant.
%
% Invokes SPARSPAK-A Release III.
%
% ********** INTERNAL FUNCTION OF CHOLTOOL **********
function perm = ordmmdmex(adjncy)
%
% ... |
github | jhausser/ParTI-master | quadadd.m | .m | ParTI-master/SeDuMi_1_3/quadadd.m | 1,863 | utf_8 | 7e4b4c6944a4b6b3afac416b8f6b4b46 | % [zhi,zlo] = quadadd(xhi,xlo,y)
% QUADADD Compute (zhi+zlo) = (xhi+xlo) + y.
% x an z are in double-double format (quad precision)
%
% ********** INTERNAL FUNCTION OF SEDUMI **********
%
% See also sedumi
function [zhi,zlo] = quadadd(xhi,xlo,y)
%
% This file is part... |
github | jhausser/ParTI-master | vectril.m | .m | ParTI-master/SeDuMi_1_3/vectril.m | 1,805 | utf_8 | bc3bc920887126a83dc9c3a369bb1f0c | % y = vectril(x,K)
% VECTRIL converts "PSD" blocks to lower triangular form.
%
% ********** INTERNAL FUNCTION OF SEDUMI **********
%
% See also sedumi
function y = vectril(x,K)
%
% This file is part of SeDuMi 1.1 by Imre Polik and Oleksandr Romanko
% Copy... |
github | jhausser/ParTI-master | partitA.m | .m | ParTI-master/SeDuMi_1_3/partitA.m | 1,862 | utf_8 | 6e9917c47220d7d6d6b9dcafe9064061 | % Ablkjc = partitA(At,blkstart)
% PARTITA Partition columns of A according to the subscripts listed in blkstart.
%
% ******************** INTERNAL FUNCTION OF SEDUMI ********************
%
% See also sedumi
function Ablkjc = partitA(At,blkstart)
%
% This file is part ... |
github | jhausser/ParTI-master | psdinvjmul.m | .m | ParTI-master/SeDuMi_1_3/psdinvjmul.m | 1,828 | utf_8 | 6bf22ae1d0d7d4c2d248639e79ffa700 | % z = psdinvjmul(xlab,xfrm, y, K)
% PSDINVJMUL solves x jmul z = y, with x = XFRM*diag(xlab)*XFRM'
%
% ********** INTERNAL FUNCTION OF SEDUMI **********
%
% See also sedumi
function z = psdinvjmul(xlab,xfrm, y, K)
%
% This file is part of SeDuMi 1.1 by Imre Polik and... |
github | jhausser/ParTI-master | getDAt.m | .m | ParTI-master/SeDuMi_1_3/getDAt.m | 2,090 | utf_8 | c93d1c5b0d98bbdd2581fc2766541947 | % [DAtq, DAts] = getDAt(At,Ablk,colsel, d,ud,K)
%
%Creates
% DAt.s full nnz x 1 vector, containing nonzeroblocks(T) with T a
% sparse N x length(colsel) matrix, with Ablk.s(:,colsel) block struct.
% NOTE: only triu(.) stored per block, with redundant 0's in tril.
% So triu(Ud*Aik*Ud') in nonzero bloc... |
github | jhausser/ParTI-master | bwdpr1.m | .m | ParTI-master/SeDuMi_1_3/bwdpr1.m | 1,877 | utf_8 | cb69691e8826f9a16bde0d47405b98f7 | % y = bwdpr1(Lden, b)
% BWDPR1 Solves "PROD_k L(pk,betak)' * y = b", where
% L(p,beta) = eye(n) + tril(p*beta',-1).
%
% ********** INTERNAL FUNCTION OF SEDUMI **********
%
% See also sedumi, dpr1fact, fwdpr1
function y = bwdpr1(Lden, b)
%
% Thi... |
github | jhausser/ParTI-master | frameit.m | .m | ParTI-master/SeDuMi_1_3/frameit.m | 1,638 | utf_8 | ff75edc1c04664ac0c62b57b1eb1661e | % x = frameit(lab,frmq,frms,K)
% FRAMEIT
%
% ********** INTERNAL FUNCTION OF SEDUMI **********
%
% See also sedumi
function x = frameit(lab,frmq,frms,K)
%
% This file is part of SeDuMi 1.1 by Imre Polik and Oleksandr Romanko
% Copyright (C) 2005 McMaster Univer... |
github | jhausser/ParTI-master | getada1.m | .m | ParTI-master/SeDuMi_1_3/getada1.m | 2,396 | utf_8 | 206486ca5437a093fb9a1fdd855ff1f2 | % ADA = getada1(ADA, A,Ajc2,perm, d, blkstart)
% GETADA1 Compute ADA(i,j) = (D(d^2; LP,Lorentz)*A.t(:,i))' *A.t(:,j),
% and exploit sparsity as much as possible.
% Ajc2 points just beyond LP/Lorentz nonzeros for each column
% blkstart = K.qblkstart partitions into Lorentz bloc... |
github | jhausser/ParTI-master | sddir.m | .m | ParTI-master/SeDuMi_1_3/sddir.m | 3,345 | utf_8 | 00ebfa573895fcf59bc790b35a0eb489 | % [dx,dy,dz,dy0, err] = sddir(L,Lden,Lsd,p,...
% d,v,vfrm,At,DAt,dense, R,K,y,y0,b, pars)
% SDDIR Direction decomposition for Ye-Todd-Mizuno self-dual embedding.
% Here, p is the direction p = dx+dz. If p=[], then assume p=-v,
% the "affine scalin... |
github | jhausser/ParTI-master | bwblkslv.m | .m | ParTI-master/SeDuMi_1_3/bwblkslv.m | 1,585 | utf_8 | 7aab88b5b2c5bbc0b8395d1d2a21f1ec | % BWBLKSLV Solves block sparse upper-triangular system.
% y = bwblkslv(L,b) yields the same result as
% y(L.perm,:) = L.L'\b
% However, BWBLKSLV is faster than the built-in operator "\",
% because it uses dense linear algebra and loop-unrolling on
% supernodes.
%
% Typical use, with X... |
github | jhausser/ParTI-master | sqrtinv.m | .m | ParTI-master/SeDuMi_1_3/sqrtinv.m | 1,862 | utf_8 | 5b37f7048bfd0cdc7f02dad339241051 | % y = sqrtinv(q,vlab,K)
% SQRTINV Computes for PSD-cone, y = (Q / diag(sqrt(vlab)))', so that
% Y'*Y = inv(Q * diag(vlab) * Q').
%
% ********** INTERNAL FUNCTION OF SEDUMI **********
%
% See also sedumi
function y = sqrtinv(q,vlab,K)
%
% This file is part ... |
github | jhausser/ParTI-master | vecsym.m | .m | ParTI-master/SeDuMi_1_3/vecsym.m | 1,811 | utf_8 | 7f48e3da88265c01b5f864c6904b2c46 | % y = vecsym(x,K)
% VECSYM For the PSD submatrices, we let Yk = (Xk+Xk')/2
%
% ********** INTERNAL FUNCTION OF SEDUMI **********
%
% See also sedumi
function y = vecsym(x,K)
%
% This file is part of SeDuMi 1.1 by Imre Polik and Oleksandr Romanko
... |
github | jhausser/ParTI-master | makereal.m | .m | ParTI-master/SeDuMi_1_3/makereal.m | 1,854 | utf_8 | 12d68656c3562650dcde9762b1a0032e | % y = makereal(x,K,cpx)
% MAKEREAL Converts matrix in MATLAB-complex format to internal
% SeDuMi format.
%
% ******************** INTERNAL FUNCTION OF SEDUMI ********************
%
% See also sedumi
function y = makereal(x,K,cpx)
%
% This file is part of SeDuM... |
github | jhausser/ParTI-master | Amul.m | .m | ParTI-master/SeDuMi_1_3/Amul.m | 2,073 | utf_8 | a40d098552f610081ae070716fcd38d0 | % y = Amul(At,dense,x,transp)
% AMUL Computes A*x (transp=0) or A'*x (transp=1), taking care of dense.A.
%
% ********** INTERNAL FUNCTION OF SEDUMI **********
%
% See also sedumi
function y = Amul(At,dense,x,transp)
%
% This file is part of SeDuMi 1.1 by Imre P... |
github | jhausser/ParTI-master | stepdif.m | .m | ParTI-master/SeDuMi_1_3/stepdif.m | 7,011 | utf_8 | c1865ed77c9842ad9ab6fcaab21d3913 | % [t,rcdx] = stepdif(d,R,y0,x,y,z,dy0,dx,dy,dz,b,mint,tpmtd)
% STEPDIF Implements Primal-Dual Step-Differentiation for self-dual model
%
% ********** INTERNAL FUNCTION OF SEDUMI **********
%
% See also sedumi
function [t,rcdx] = stepdif(d,R,y0,x,y,z,dy0,dx,dy,dz,b,mint,tpmtd)
%
% This file i... |
github | jhausser/ParTI-master | qblkmul.m | .m | ParTI-master/SeDuMi_1_3/qblkmul.m | 1,896 | utf_8 | 22ce6e66d900889019bc1b7c003b3fa6 | % y = qblkmul(mu,d,blkstart)
% QBLKMUL yields length(y)=blkstart(end)-blkstart(1) vector with
% y[k] = mu(k) * d[k]; the blocks d[k] are partitioned by blkstart.
%
% ********** INTERNAL FUNCTION OF SEDUMI **********
%
% See also sedumi
function y = qblkmul(mu... |
github | jhausser/ParTI-master | psdjmul.m | .m | ParTI-master/SeDuMi_1_3/psdjmul.m | 1,930 | utf_8 | e17e0699b98b824d8f759e9d3ece4e16 | % z = psdmul(x,y, K)
% PSDMUL for full x,y. Computes (XY+YX)/2
%
% ********** INTERNAL FUNCTION OF SEDUMI **********
%
% See also sedumi
function z = psdjmul(x,y, K)
%
% This file is part of SeDuMi 1.3 by Imre Polik
% Copyright (C) 2005 McMaster University... |
github | jhausser/ParTI-master | widelen.m | .m | ParTI-master/SeDuMi_1_3/widelen.m | 4,664 | utf_8 | 85ca6ba0a63cb73f61d19a3d78279cfe | % [t,wr,w] = widelen(xc,zc,y0, dx,dz,dy0,d2y0, maxt,pars,K)
%
% WIDELEN Computes approximate wide-region neighborhood step length.
% Does extensive line search only if it pays, that is the resulting
% rate will be at most twice the best possible rate, and the step-length
% at least half of the best p... |
github | jhausser/ParTI-master | psdeig.m | .m | ParTI-master/SeDuMi_1_3/psdeig.m | 2,612 | utf_8 | c9b9e8ce67175c165dfac971f67a23a5 | % [lab,q] = psdeig(x,K)
% PSDEIG Computes spectral coefficients of x w.r.t. K
% Arguments "q" is optional - without it's considerably faster.
% FLOPS indication: 1.3 nk^3 versus 9.0 nk^3 for nk=500,
% 1.5 nk^3 9.8 nk^3 for nk=50.
%
% *... |
github | jhausser/ParTI-master | sdfactor.m | .m | ParTI-master/SeDuMi_1_3/sdfactor.m | 2,689 | utf_8 | 709222cac79973f9bc08b1f2f0ccdbbf | % [Lsd,Rscl] = sdfactor(L,Lden, dense,DAt, d,v,y, At,K,R,y0,pars)
% SDFACTOR Factor self-dual embedding
%
% ******************** INTERNAL FUNCTION OF SEDUMI ********************
%
% See also sedumi
function Lsd = sdfactor(L,Lden, dense,DAt, d,v,y, At,c,K,R,y0,pars)
%
% This file is part of SeDuMi 1.1 by... |
github | jhausser/ParTI-master | maxstep.m | .m | ParTI-master/SeDuMi_1_3/maxstep.m | 2,720 | utf_8 | d29347fc1532f4e8df8358fd237ecb9b | % tp = maxstep(dx,x,auxx,K)
% MAXSTEP Computes maximal step length to the boundary of the cone K.
%
% ********** INTERNAL FUNCTION OF SEDUMI **********
%
% See also sedumi
function tp = maxstep(dx,x,auxx,K)
%
% This file is part of SeDuMi 1.1 by Imre Polik and Oleksandr R... |
github | jhausser/ParTI-master | getada3.m | .m | ParTI-master/SeDuMi_1_3/getada3.m | 2,105 | utf_8 | 11ceb2c4517a6a6e4b9e5ea48eb7c955 | % [ADA,absd] = getada3(ADA, A,Ajc1,Aord, udsqr,K)
% GETADA3 Compute ADA(i,j) = (D(d^2)*A.t(:,i))' *A.t(:,j),
% and exploit sparsity as much as possible.
% absd - length m output vector, containing
% absd(i) = abs((D(d^2)*A.t(:,i))' *abs(A.t(:,i)).
% Hence, diag(ADA)./absd gi... |
github | jhausser/ParTI-master | mat.m | .m | ParTI-master/SeDuMi_1_3/mat.m | 1,829 | utf_8 | a1a316630e44574ed78920f5612b3e6d | % Y = MAT(x,n) or Y = MAT(x) (the 2nd argument is optional)
% Given a vector of length n^2, this produces the n x n matrix
% Y such that x = vec(Y). In other words, x contains the columns of the
% matrix Y, stacked below each other.
%
% See also vec.
function X = mat(x,n)
%
% This file is par... |
github | jhausser/ParTI-master | blkchol.m | .m | ParTI-master/SeDuMi_1_3/blkchol.m | 2,605 | utf_8 | da4d2517ae14a82752904f11f6cbc84e | % [L.L, L.d, L.skip, L.add] = blkchol(L,X,pars,absd)
% BLKCHOL Fast block sparse Cholesky factorization.
% The sparse Cholesky factor will be placed in the fields L.L, L.d;
% the symbolic factorization fields remain unchanged.
% On input, L should be the symbolic factori... |
github | jhausser/ParTI-master | psdfactor.m | .m | ParTI-master/SeDuMi_1_3/psdfactor.m | 2,456 | utf_8 | 96443c1466de8fa756ed03d2d6cecf4e | % [ux,ispos] = psdfactor(x,K)
% PSDFACTOR UX'*UX Cholesky factorization
%
% ********** INTERNAL FUNCTION OF SEDUMI **********
%
% See also sedumi
function [ux,ispos] = psdfactor(x,K)
%
% This file is part of SeDuMi 1.1 by Imre Polik and Oleksandr Romanko
% Copyright... |
github | jhausser/ParTI-master | adendotd.m | .m | ParTI-master/SeDuMi_1_3/adendotd.m | 1,876 | utf_8 | 6485f3519ff8aa417135217d11492b65 | % Ad = Adendotd(dense, d, sparAd, Ablk, blkstart)
% ADENDOTD Computes d[k]'*Aj[k] for Lorentz blocks that are to be factored
% by dpr1fact.
%
% ********** INTERNAL FUNCTION OF SEDUMI **********
%
% See also sedumi
function Ad = Adendotd(dense, d, sparAd, Ablk, blkstart)
%
% This... |
github | jhausser/ParTI-master | qjmul.m | .m | ParTI-master/SeDuMi_1_3/qjmul.m | 2,538 | utf_8 | a1df3f1c1085dda5f3432444681c0e74 | % z = qjmul(x,y,K)
% QJMUL Implements Jordan product for Lorentz cones
%
% ********** INTERNAL FUNCTION OF SEDUMI **********
%
% See also sedumi
function z = qjmul(x,y,K)
%
% This file is part of SeDuMi 1.1 by Imre Polik and Oleksandr Romanko
% Copyright (C) ... |
github | jhausser/ParTI-master | wregion.m | .m | ParTI-master/SeDuMi_1_3/wregion.m | 8,078 | utf_8 | ce92b33341db85f802e7d9e5cd2a69d7 | % [xscl,y,zscl,y0, w,relt, dxmdz,err, wr] = wregion(L,Lden,Lsd,...
% d,v,vfrm,A,DAt,dense, R,K,y,y0,b, pars, wr)
% WREGION Implements Sturm-Zhang Wide-region Interior Point Method.
%
% ******************** INTERNAL FUNCTION OF SEDUMI ********************
%
% See also sedumi
function... |
github | jhausser/ParTI-master | ddot.m | .m | ParTI-master/SeDuMi_1_3/ddot.m | 2,082 | utf_8 | c709cf41a873a49728a71063ac1b11e7 | % ddotX = ddot(d,X,blkstart [, Xblkjc])
% DDOT Given N x m matrix X, creates (blkstart(end)-blkstart(1)) x m matrix
% ddotX, having entries d[i]'* xj[i] for each (Lorentz norm bound) block
% blkstart(i):blkstart(i+1)-1. If X is sparse, then Xblkjc(:,2:3) should
% point to first... |
github | jhausser/ParTI-master | getdense.m | .m | ParTI-master/SeDuMi_1_3/getdense.m | 4,850 | utf_8 | 23575ea33e5467f2687071aae09dcada | % [dense,Adotdden] = getdense(At,Ablkjc,K,pars)
% GETDENSE Creates dense.{l,cols,q}.
% Try to find small proportion of the cone primitives that appear
% in a large proportion of the primal constraints.
%
% ******************** INTERNAL FUNCTION OF SEDUMI ********************
%
% ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.