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 | xyza11808/MATLAB-master | runningAverage.m | .m | MATLAB-master/osort/osort-v3-rel/code/continuous/runningAverage.m | 695 | utf_8 | 585c35580fce190714b12243c5586aa3 | %
%mode: 1 normal (filter)
% 2 lag-corrected (filtfilt)
%
%
function [runMean] = runningAverage( rawSignal, windowSize, mode )
if nargin<3
mode=1;
end
if mode==1
runMean = filter( ones(1,windowSize)/windowSize, 1, rawSignal);
else
runMean = filtfilt( ones(1,windowSize)/windowSize, 1, rawSignal);
end
... |
github | xyza11808/MATLAB-master | runningStd.m | .m | MATLAB-master/osort/osort-v3-rel/code/continuous/runningStd.m | 370 | utf_8 | 33d8236c20df55934a70f26ac9222466 | %
%calculates a running std (fast, with convolution).
%
%
%urut/april04
function runStd = runningStd( rawSignal, k)
coef = ones(1, k) / k;
run_mean_1 = filter(coef, 1, rawSignal.^2);
run_mean_2 = filter(coef, 1, rawSignal).^2;
run_mean_1 = run_mean_1(k : end);
run_mean_2 = run_mean_2(k : end);
runStd = (k / (k - 1)) *... |
github | xyza11808/MATLAB-master | defineFileFormat.m | .m | MATLAB-master/osort/osort-v3-rel/code/continuous/defineFileFormat.m | 1,131 | utf_8 | fdf587f5c1c3ed8a65c678d27c45df50 | %
%defines properties which depend on the raw file version
%some file formats have a fixed sampling rate. if not, the sampling rate is not modified
%
%samplingFreq: the sampling frequency in Hz
%limit: what is the maximal absolute valid value for this file format (bigger/smaller than this is treated as out of range)
%p... |
github | xyza11808/MATLAB-master | getRawCSCData.m | .m | MATLAB-master/osort/osort-v3-rel/code/continuous/neuralynx/getRawCSCData.m | 1,613 | utf_8 | ac6863cb8d295b715fbf9a19594b4d21 | %
%reads the raw data from a neuralynx CSC file.
%
%urut/april04
function [timestamps,dataSamples] = getRawCSCData( filename, fromInd, toInd, mode )
if nargin==3
mode=2;
end
FieldSelection(1) = 1;%timestamps
FieldSelection(2) = 0;
FieldSelection(3) = 0;%sample freq
FieldSelection(4) = 0;
FieldSelection(5) = 1;%sam... |
github | xyza11808/MATLAB-master | getNumFromCSCHeader.m | .m | MATLAB-master/osort/osort-v3-rel/code/continuous/neuralynx/getNumFromCSCHeader.m | 326 | utf_8 | 4d5054b6a7029bfc372d3927aaa6fd27 | %
% return the number after the string marked with 'key'
%
%urut/march09
function value = getNumFromCSCHeader(header, Key)
value=[];
for i=1:length(header)
indFound=strfind( header{i}, Key );
if ~isempty ( indFound )
value = header{i}( indFound+length(Key): end );
break;
end
... |
github | xyza11808/MATLAB-master | NcsRawRead_realignInds.m | .m | MATLAB-master/osort/osort-v3-rel/code/continuous/neuralynx/NcsRawRead_realignInds.m | 964 | utf_8 | 05b3b48971ce44b792810f8d7624a2ad | %
% to get a range of timestamps across several channels from Ncs files
% usually this can be achieved by reading the same indices from all the files,but sometimes the same
% indices do not return the same timestamps so a dynamic adjustment is necessary.
%
% this file performs this adjustment if necessary and re-reads ... |
github | xyza11808/MATLAB-master | getRawCSCTimestamps.m | .m | MATLAB-master/osort/osort-v3-rel/code/continuous/neuralynx/getRawCSCTimestamps.m | 853 | utf_8 | ca1592d734323d51090e3e024870b08c | %
%reads the raw timestamps from a neuralynx CSC file.
%
%urut/april04
function [timestamps,nrBlocks,nrSamples,sampleFreq,isContinous,headerInfo] = getRawCSCTimestamps( filename )
disp(['reading ' filename]);
isContinous=false;
FieldSelection(1) = 1;%timestamps
FieldSelection(2) = 0;
FieldSelection(3) = 1;%sample fre... |
github | xyza11808/MATLAB-master | writeLeadpointBinFormat.m | .m | MATLAB-master/osort/osort-v3-rel/code/continuous/binLeadpoint/writeLeadpointBinFormat.m | 1,263 | utf_8 | 6279dc93a3b482aa11e9be292dbd9d6f | %
%write a leadpoint bin file
%converts all data to 16 bit unsigned integers using 2-complement.
%thus,effective range is +- 2^(N-1) with N=16
%
%urut/april09
function count = writeLeadpointBinFormat( filename, data)
N=16;
gainFact=100;
%dataConv=dec2bin(data,N);
%data=(randn(1,100)*10);
%binary inversion
value = i... |
github | xyza11808/MATLAB-master | readLeadpointBinFormat.m | .m | MATLAB-master/osort/osort-v3-rel/code/continuous/binLeadpoint/readLeadpointBinFormat.m | 722 | utf_8 | 7ccea1bbaeeb5a016c16310f86cde56a | %reads the binary format of the leadpoint system. these files are created
%by the "Leadpoint Export Utility"
%
%N: nr bits (16 or 32)
%gainFact: 100,10,1
%
%urut/jan08
function vals = readLeadpointBinFormat( filename, N, gainFact)
if nargin==1
N=16; %how many bits
gainFact=100;
end
if ~exist(filename)
error... |
github | xyza11808/MATLAB-master | getRawBINData.m | .m | MATLAB-master/osort/osort-v3-rel/code/continuous/binLeadpoint/getRawBINData.m | 611 | utf_8 | 859daddbbd6c4cd634e6dc1b524d4c43 | %reads the binary format of the leadpoint system.
%
%urut/jan08
function [timestamps,dataSamples] = getRawBINData( filename, fromInd, toInd, samplingFreq )
N=16; %16bits per data sample
gainFact=100;
dataSamples = readLeadpointBinFormat( filename, N, gainFact);
if toInd>length(dataSamples)
toInd=length(dataSampl... |
github | xyza11808/MATLAB-master | CompSense_Fig7.m | .m | MATLAB-master/sparselab/SparseLab2.1-Core/CompSense/CompSense_Fig7.m | 6,791 | utf_8 | 9775ab71975623cd9a16cedf6949ab07 | %================================================
% This function produces the results of Figure 7 in the paper
% Performance of OMP and BP with random projections,
% testing the results for varying number of sparsity of the
% representations, before and after the optimization
%=========================================... |
github | xyza11808/MATLAB-master | CompSense_Fig6.m | .m | MATLAB-master/sparselab/SparseLab2.1-Core/CompSense/CompSense_Fig6.m | 6,925 | utf_8 | 923c6e9d4301d10119833b59695c85dd | %================================================
% This function produces the results of Figure 6 in the paper,
% testing the results for varying number of measurements,
% before and after the optimization of the projections
%================================================
function []=CompSense_Fig6()
% Setting Pa... |
github | xyza11808/MATLAB-master | CompSense_Fig3.m | .m | MATLAB-master/sparselab/SparseLab2.1-Core/CompSense/CompSense_Fig3.m | 3,914 | utf_8 | 8937a937061126b8db4712589d589a5a | %================================================
% This Script produces Figure 3 in the paper, showing the way
% the proposed iterative algorithm for optimizining P converge
% for various values of \gamma (used here as dd2).
%================================================
function []=CompSense_Fig3()
% Setting P... |
github | xyza11808/MATLAB-master | CompSense_Fig2.m | .m | MATLAB-master/sparselab/SparseLab2.1-Core/CompSense/CompSense_Fig2.m | 551 | utf_8 | b2a5f4a6fae28a048a878b26bf00af5f | %================================================
% This function generates Figure 2 in the paper, whcih shows the
% shrink operation that needs to be performed.
%================================================
function []=CompSense_Fig2()
t=0.5; gamma=0.6;
g=-1:0.001:1;
h=(abs(g)>=t).*(g*gamma)+...
(abs(g)<t &... |
github | xyza11808/MATLAB-master | CompSense_Fig4.m | .m | MATLAB-master/sparselab/SparseLab2.1-Core/CompSense/CompSense_Fig4.m | 4,056 | utf_8 | c6b5b1996264c5e231aba958f2475c30 | %================================================
% This Script produces Figure 4 in the paper, showing the
% histogram of the inner-products before and after the
% optimization, using the fixed threshold option.
%================================================
function []=CompSense_Fig4()
% Setting Parameters
K=4... |
github | xyza11808/MATLAB-master | CompSense_Fig5.m | .m | MATLAB-master/sparselab/SparseLab2.1-Core/CompSense/CompSense_Fig5.m | 4,056 | utf_8 | c5c31df80923bc716f7740d2b320bbf5 | %================================================
% This Script produces Figure 4 in the paper, showing the
% histogram of the inner-products before and after the
% optimization, using the fixed threshold option.
%================================================
function []=CompSense_Fig5()
% Setting Parameters
K=4... |
github | xyza11808/MATLAB-master | SolveOMP.m | .m | MATLAB-master/sparselab/SparseLab2.1-Core/Solvers/SolveOMP.m | 5,272 | utf_8 | 601851ee9e0c301b877b1806f9ab9ad3 | function [sols, iters, activationHist] = SolveOMP(A, y, N, maxIters, lambdaStop, solFreq, verbose, OptTol)
% SolveOMP: Orthogonal Matching Pursuit
% Usage
% [sols, iters, activationHist] = SolveOMP(A, y, N, maxIters, lambdaStop, solFreq, verbose, OptTol)
% Input
% A Either an explicit nxN matrix, with rank(A)... |
github | xyza11808/MATLAB-master | SolvePFP.m | .m | MATLAB-master/sparselab/SparseLab2.1-Core/Solvers/SolvePFP.m | 6,680 | utf_8 | 9108b9bbed869986536fc3b189673744 | function [sol, numIters, activationHist, v] = SolvePFP(A, y, N, algType, maxIters, verbose, OptTol)
% SolvePFP: Implements the Polytope Faces Pursuit algorithm
% Usage
% [sols, numIters, activationHist] = SolvePFP(A, y, N, algType, maxIters,
% verbose, OptTol)
% Input
% A An nxN matrix, with rank(A) = min(N,n... |
github | xyza11808/MATLAB-master | SolveLasso.m | .m | MATLAB-master/sparselab/SparseLab2.1-Core/Solvers/SolveLasso.m | 10,874 | utf_8 | dbff19e90167adbdbe85eab2f7ab0fe7 | function [sols, numIters, activationHist, duals] = SolveLasso(A, y, N, algType, maxIters, lambdaStop, resStop, solFreq, verbose, OptTol)
% SolveLasso: Implements the Lars/Lasso algorithms
% Usage
% [sols, numIters, activationHist, duals] = SolveLasso(A, y, N, algType,
% maxIters, lambdaStop, resStop, solFreq, verbose, ... |
github | xyza11808/MATLAB-master | pdco.m | .m | MATLAB-master/sparselab/SparseLab2.1-Core/Solvers/pdco.m | 54,596 | utf_8 | 9b21477124e43a4155c4b72508dccb8f | function [x,y,z,inform,PDitns,CGitns,time] = ...
pdco( Fname,Aname,b,bl,bu,d1,d2,options,x0,y0,z0,xsize,zsize )
%-----------------------------------------------------------------------
% pdco.m: Primal-Dual Barrier Method for Convex Objectives (23 Sep 2003)
%--------------------------------------------------------... |
github | xyza11808/MATLAB-master | HDCPNPDDemo.m | .m | MATLAB-master/sparselab/SparseLab2.1-Core/Papers/HDCPNPD/HDCPNPDDemo/HDCPNPDDemo.m | 11,398 | utf_8 | b71c4a0e616dc477d3ba7725c2ed106d | %********************************************************
function HDCPNPDDemo(action)
%Usage: HDCPNPDDemo
%Description: Demo for paper "High-Dimensional Centrosymmetric Polytopes
%with Neighborliness Proportional to Dimension"
%Date: Sept 21, 2005
%********************************************************
global plotOf... |
github | xyza11808/MATLAB-master | ExtCSDemo.m | .m | MATLAB-master/sparselab/SparseLab2.1-Core/Papers/ExtCS/ExtCSDemo/ExtCSDemo.m | 11,327 | utf_8 | 31c77b39144643e2746ee566e8821e41 | %********************************************************
function ExtCSDemo(action)
%Usage: ExtCSDemo
%Description: Demo for paper Extensions of Compressed Sensing
%Date: Sept 21, 2005
%********************************************************
global plotOffset
global LastFigureNo
global PaperName
global MakeFigureFile... |
github | xyza11808/MATLAB-master | MSNVENODemo.m | .m | MATLAB-master/sparselab/SparseLab2.1-Core/Papers/MSNVENO/MSNVENODemo/MSNVENODemo.m | 11,424 | utf_8 | 2d78969148ee75ceb0b00d4d1a9fb8ff | %********************************************************
function MSNVENODemo(action)
%Usage: MSNVENODemo
%Description: Demo for paper "Breakdown Point of Model
% Selection When the Number of Variables Exceeds the
% Number of Observations"
%Date: Apr 21, 2006
%********************************************************
... |
github | xyza11808/MATLAB-master | StOMPDemo.m | .m | MATLAB-master/sparselab/SparseLab2.1-Core/Papers/StOMP/StOMPDemo/StOMPDemo.m | 11,386 | utf_8 | d3eca49cf3b388f12ce2879911d00cf6 | %********************************************************
function StOMPDemo(action)
%Usage: StOMPDemo
%Description: Demo for paper "Sparse Solution of
% Underdetermined Linear Equations by Stagewise Orthogonal
% Matching Pursuit"
%Date: March 28, 2006
%********************************************************
global ... |
github | xyza11808/MATLAB-master | GenDataFig11.m | .m | MATLAB-master/sparselab/SparseLab2.1-Core/Papers/StOMP/StOMPDemo/GenData/GenDataFig11.m | 2,265 | utf_8 | 1a50104d34fffe2a4ba177c691ca2b57 | % GenDataFig11: Creates the data file needed to generate figure 11:
% Phase diagram for CFDR thresholding with noise at a specified
% signal-to-noise ratio.
%
function GenDataFig11(SNR)
ensemble = 'USE';
nonzeros = 'Gaussian';
N = 800;
T = 100;
fname = ['DataFig11-SNR' num2str(SNR) '.mat'];
myeps = 1e-4;
S = 10;
q... |
github | xyza11808/MATLAB-master | GenDataFig10.m | .m | MATLAB-master/sparselab/SparseLab2.1-Core/Papers/StOMP/StOMPDemo/GenData/GenDataFig10.m | 1,894 | utf_8 | 6559c81adf8451f63cc6d8b20c683fdb | % GenDataFig10: Creates the data file needed to generate figure 10:
% Phase diagram for CFAR thresholding with various distributions
% vector_type in {'Gaussian', 'Uniform', 'Signs', 'Power'}
%
function GenDataFig10(vector_type)
fname = ['DataFig10_' vector_type '.mat'];
ensemble = 'USE';
nonzeros = 'Signs';
N = 800... |
github | xyza11808/MATLAB-master | SNSULELPDemo.m | .m | MATLAB-master/sparselab/SparseLab2.1-Core/Papers/SNSULELP/SNSULELPDemo/SNSULELPDemo.m | 11,412 | utf_8 | bd0835c41f03338d857d8a61e0bb78c5 | %********************************************************
function SNSULELPDemo(action)
%Usage: SNSULELPDemo
%Description: Demo for paper "Sparse Nonnegative Solutions of
%Underdetermined Linear Equations by Linear Programming"
%Date: February 28, 2006
%********************************************************
global pl... |
github | xyza11808/MATLAB-master | NRPSHDDemo.m | .m | MATLAB-master/sparselab/SparseLab2.1-Core/Papers/NRPSHD/NRPSHDDemo/NRPSHDDemo.m | 11,337 | utf_8 | 45a55f3a819ec0cb0e955a6ed4056975 | %********************************************************
function NRPSHDDemo(action)
%Usage: NRPSHDDemo
%Description: Demo for paper "Neighborliness of Randomly-Projected Simplices in High Dimensions"
%Date: February 28, 2006
%********************************************************
global plotOffset
global LastFigure... |
github | xyza11808/MATLAB-master | SolveLasso_Flops.m | .m | MATLAB-master/sparselab/SparseLab2.1-Core/Papers/FastL1/SolveLasso_Flops.m | 7,862 | utf_8 | d38286b9ebef8200f6380f493e77f886 | function [sols, numIters, activationHist, flops] = SolveLasso_Flops(A, y, algType, maxIters, fullPath, verbose, OptTol)
% SolveLasso_Flops: Computes the operation count of the Homotopy algorithm
% when applied to solve the Lasso problem
% Usage
% [sols, numIters, activationHist] = SolveLasso(A, y, algType, maxIters, f... |
github | xyza11808/MATLAB-master | lars_regression_noise.m | .m | MATLAB-master/ca_source_extraction-master/utilities/lars_regression_noise.m | 7,310 | utf_8 | 57b6188ceb2fc027c7e65b5a96aac472 | function [Ws, lambdas, W_lam, lam, flag] = lars_regression_noise(Y, X, positive, noise)
% run LARS for regression problems with LASSO penalty, with optional positivity constraints
% Author: Eftychios Pnevmatikakis. Adapted code from Ari Pakman
% Input Parameters:
% Y: Y(:,t) is the observed data at time ... |
github | xyza11808/MATLAB-master | plot_components_GUI.m | .m | MATLAB-master/ca_source_extraction-master/utilities/plot_components_GUI.m | 7,360 | utf_8 | bcd760c294370e6fb374309c49caf87a | %%
function plot_components_GUI(Y,A,C,b,f,Cn,options)
defoptions = CNMFSetParms;
if nargin < 7 || isempty(options); options = []; end
if ~isfield(options,'d1') || isempty(options.d1); d1 = input('What is the total number of rows? \n'); else d1 = options.d1; end % # of rows
if ~isfield(options,'d2') || isempty(... |
github | xyza11808/MATLAB-master | greedyROI2d.m | .m | MATLAB-master/ca_source_extraction-master/utilities/greedyROI2d.m | 8,745 | utf_8 | cec5d1ab67f210f14a39bf5ac1843ea6 | function [Ain, Cin, bin, fin, center, res] = greedyROI2d(data, K, params)
%greedyROI2d using greedy algorithm to identify neurons in 2d calcium movie
%
%Usage: [basis, trace, center, res] = greedyROI2d(data, K, params)
%
%Input:
%data M x N x T movie, raw data, each column is a vectorized movie
%K nu... |
github | xyza11808/MATLAB-master | greedyROI.m | .m | MATLAB-master/ca_source_extraction-master/utilities/greedyROI.m | 11,611 | utf_8 | 7dcf32abd22ffbdb746d9ae2921a2453 | function [Ain, Cin, b_in, f_in, center, res] = greedyROI(Y, K, params)
% component initialization using a greedy algorithm to identify neurons in 2d or 3d calcium imaging movies
%
% Usage: [Ain, Cin, bin, fin, center, res] = greedyROI2d(data, K, params)
%
% Input:
% Y d1 x d2 x (d3 x) T movie, raw data, ea... |
github | xyza11808/MATLAB-master | RunFISTA.m | .m | MATLAB-master/ca_source_extraction-master/ROI_detect-master/RunFISTA.m | 9,283 | utf_8 | 120c8d94d66f2d5115a7d6f9e6587648 | %% 16/4/2014
function [x, u, f, neuron_stats, performance, FISTA_params ] = RunFISTA(data,params,flags,specs) %#ok
%% inputs:
% data
% 2D or 3D video of calcium imaging in neurons (XxYxT or XxYxZxT array)
%params - algorithm parameters
v2struct(params)
% data_name : name of dataset
% iterations : number of Fista iter... |
github | xyza11808/MATLAB-master | v2struct.m | .m | MATLAB-master/ca_source_extraction-master/ROI_detect-master/Misc/v2struct.m | 15,949 | utf_8 | 20912a1f0ff4635fa430ce427d925be3 | %% v2struct
% v2struct Pack/Unpack Variables to/from a scalar structure.
function varargout = v2struct(varargin)
%% Description
% v2struct has dual functionality in packing & unpacking variables into structures and
% vice versa, according to the syntax and inputs.
%
% Function features:
% * Pack variable... |
github | xyza11808/MATLAB-master | cvx_version.m | .m | MATLAB-master/ca_source_extraction-master/cvx/cvx_version.m | 14,459 | utf_8 | 7953f4017783e922b27023ad0895060f | 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 | xyza11808/MATLAB-master | cvx_grbgetkey.m | .m | MATLAB-master/ca_source_extraction-master/cvx/cvx_grbgetkey.m | 19,096 | utf_8 | 080162e4fd27b14ea8387362148db7d1 | function success = cvx_grbgetkey( kcode, overwrite )
% CVX_GRBGETKEY Retrieves and saves a Gurobi/CVX license.
%
% This function is used to install Gurobi license keys for use in CVX. It
% is called with your Gurobi license code as a string argument; e.g.
%
% cvx_grbgetkey xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
% ... |
github | xyza11808/MATLAB-master | HSDNTcorr.m | .m | MATLAB-master/ca_source_extraction-master/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 | xyza11808/MATLAB-master | HSDHKMdirfun.m | .m | MATLAB-master/ca_source_extraction-master/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 | xyza11808/MATLAB-master | HSDsqlp.m | .m | MATLAB-master/ca_source_extraction-master/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 | xyza11808/MATLAB-master | HSDsortA.m | .m | MATLAB-master/ca_source_extraction-master/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 | xyza11808/MATLAB-master | HSDHKMrhsfun.m | .m | MATLAB-master/ca_source_extraction-master/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 | xyza11808/MATLAB-master | HSDsqlpcheckconvg.m | .m | MATLAB-master/ca_source_extraction-master/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 | xyza11808/MATLAB-master | HSDNTdirfun.m | .m | MATLAB-master/ca_source_extraction-master/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 | xyza11808/MATLAB-master | HSDNTrhsfun.m | .m | MATLAB-master/ca_source_extraction-master/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 | xyza11808/MATLAB-master | HSDHKMpred.m | .m | MATLAB-master/ca_source_extraction-master/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 | xyza11808/MATLAB-master | HSDsqlpmain.m | .m | MATLAB-master/ca_source_extraction-master/cvx/sdpt3/HSDSolver/HSDsqlpmain.m | 28,301 | utf_8 | df880652075e1e6d94eefd6ddfe38c64 | %%*****************************************************************************
%% 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 | xyza11808/MATLAB-master | HSDlinsysolve.m | .m | MATLAB-master/ca_source_extraction-master/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 | xyza11808/MATLAB-master | HSDsqlpmisc.m | .m | MATLAB-master/ca_source_extraction-master/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 | xyza11808/MATLAB-master | HSDbicgstab.m | .m | MATLAB-master/ca_source_extraction-master/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 | xyza11808/MATLAB-master | HSDHKMcorr.m | .m | MATLAB-master/ca_source_extraction-master/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 | xyza11808/MATLAB-master | HSDNTpred.m | .m | MATLAB-master/ca_source_extraction-master/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 | xyza11808/MATLAB-master | HSDsqlpCpert.m | .m | MATLAB-master/ca_source_extraction-master/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 | xyza11808/MATLAB-master | cheby0.m | .m | MATLAB-master/ca_source_extraction-master/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 | xyza11808/MATLAB-master | randmat.m | .m | MATLAB-master/ca_source_extraction-master/cvx/sdpt3/Solver/randmat.m | 782 | utf_8 | 44e2c609bf458ffd5a37d9f816a0ea1b | %%******************************************************
%% 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,'n')
... |
github | xyza11808/MATLAB-master | skron.m | .m | MATLAB-master/ca_source_extraction-master/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 | xyza11808/MATLAB-master | NTcorr.m | .m | MATLAB-master/ca_source_extraction-master/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 | xyza11808/MATLAB-master | HKMcorr.m | .m | MATLAB-master/ca_source_extraction-master/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 | xyza11808/MATLAB-master | steplength.m | .m | MATLAB-master/ca_source_extraction-master/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 | xyza11808/MATLAB-master | SDPT3data_SEDUMIdata.m | .m | MATLAB-master/ca_source_extraction-master/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 | xyza11808/MATLAB-master | schurmat_sblk.m | .m | MATLAB-master/ca_source_extraction-master/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 | xyza11808/MATLAB-master | blktrace.m | .m | MATLAB-master/ca_source_extraction-master/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 | xyza11808/MATLAB-master | sqlpu2lblk.m | .m | MATLAB-master/ca_source_extraction-master/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 | xyza11808/MATLAB-master | Prod3.m | .m | MATLAB-master/ca_source_extraction-master/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 | xyza11808/MATLAB-master | sqlptermcode.m | .m | MATLAB-master/ca_source_extraction-master/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
%%***************************************************************... |
github | xyza11808/MATLAB-master | AXfun.m | .m | MATLAB-master/ca_source_extraction-master/cvx/sdpt3/Solver/AXfun.m | 1,869 | utf_8 | e816cba65d629a72167375f9a7697b2f | %%*************************************************************************
%% AXfun: compute AX(k) = <Ak,X>, k = 1:m
%%
%% AX = AXfun(blk,At,permA,X);
%%
%% Note: permA may be set to [] if no permutation is neccessary.
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Mod... |
github | xyza11808/MATLAB-master | NTpred.m | .m | MATLAB-master/ca_source_extraction-master/cvx/sdpt3/Solver/NTpred.m | 1,963 | utf_8 | 3a2374e8ffa4806b637e50e551b9c17c | %%**********************************************************************
%% NTpred: 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)) * (invZch... |
github | xyza11808/MATLAB-master | sqlp.m | .m | MATLAB-master/ca_source_extraction-master/cvx/sdpt3/Solver/sqlp.m | 11,506 | utf_8 | d4acdbc7a5a1c0fd270f5d3de302c545 | %%*****************************************************************************
%% sqlp: solve an semidefinite-quadratic-linear program
%% by infeasible path-following method.
%%
%% [obj,X,y,Z,info,runhist] = sqlp(blk,At,C,b,OPTIONS,X0,y0,Z0);
%%
%% Input: blk: a cell array describing the block diagonal structu... |
github | xyza11808/MATLAB-master | infeaspt.m | .m | MATLAB-master/ca_source_extraction-master/cvx/sdpt3/Solver/infeaspt.m | 5,422 | utf_8 | ed7ce61d1094307a576ad8ddfd42bd30 | %%********************************************************************
%% infeaspt: generate an initial point for sdp.m
%%
%% [X0,y0,Z0] = infeaspt(blk,At,C,b,options,scalefac);
%%
%% options = 1 if want X0,Z0 to be scaled identity matrices
%% = 2 if want X0,Z0 to be scalefac*(identity matrices).
%%
%% SDP... |
github | xyza11808/MATLAB-master | Arrow.m | .m | MATLAB-master/ca_source_extraction-master/cvx/sdpt3/Solver/Arrow.m | 933 | utf_8 | 4a1803a8a960eba5462879d0ae4cbb78 | %%********************************************************
%% Arrow:
%%
%% Fx = Arrow(pblk,f,x,options);
%%
%% if options == 0;
%% Fx = Arr(F)*x
%% if options == 1;
%% Fx = Arr(F)^{-1}*x
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004
%%********... |
github | xyza11808/MATLAB-master | mybicgstab.m | .m | MATLAB-master/ca_source_extraction-master/cvx/sdpt3/Solver/mybicgstab.m | 3,536 | utf_8 | 7ae20f5d14c6533fd9a50b23a1e5c8b3 | %%*************************************************************************
%% mybicgstab
%%
%% [xx,resnrm,flag] = mybicgstab(A,b,M1,tol,maxit)
%%
%% iterate on bb - (M1)*AA*x
%%
%% r = b-A*xtrue;
%%
%%*************************************************************************
function [xx,resnrm,flag] = mybicgstab(A,b... |
github | xyza11808/MATLAB-master | degeneracy.m | .m | MATLAB-master/ca_source_extraction-master/cvx/sdpt3/Solver/degeneracy.m | 5,175 | utf_8 | 52287ec83b17f60c33554d7a25764672 | %%***************************************************************
%% degeneracy: determine if an SDP problem is non-degenerate.
%%
%% [ddx,ddz,B1,B2,sig1,sig12] = degeneracy(blk,At,X,y,Z);
%%
%% Assume that strict complementarity holds:
%% for primal non-degeneracy, we need rank([B1 B2]) = m
%% for dual non-degeneracy,... |
github | xyza11808/MATLAB-master | mytime.m | .m | MATLAB-master/ca_source_extraction-master/cvx/sdpt3/Solver/mytime.m | 557 | utf_8 | 2d076b8ed1091521bbe986194c6e2b84 | %%*********************************************
%% mytime:
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004
%%*********************************************
function [hh,mm,ss] = mytime(t)
t = round(t);
h = floor(t/3600);
m = floor(rem(t,3600)/60);
s ... |
github | xyza11808/MATLAB-master | validate.m | .m | MATLAB-master/ca_source_extraction-master/cvx/sdpt3/Solver/validate.m | 7,427 | utf_8 | 60774ce6b3bd16bde97e4078d89db39b | %%***********************************************************************
%% validate: validate data
%%
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004
%%***********************************************************************
function [blk,At,C,b,di... |
github | xyza11808/MATLAB-master | svec.m | .m | MATLAB-master/ca_source_extraction-master/cvx/sdpt3/Solver/svec.m | 2,027 | utf_8 | 43bbe7c274d2d1bfb1014fc2000f47e3 | %*********************************************************
%% svec: compute the vector svec(M),
%%
%% x = svec(blk,M,isspx);
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004
%%**********************************************************
function x = s... |
github | xyza11808/MATLAB-master | read_sedumi.m | .m | MATLAB-master/ca_source_extraction-master/cvx/sdpt3/Solver/read_sedumi.m | 7,265 | utf_8 | 2035885c053fc9de89cf19fa667603d2 | %%*******************************************************************
%% Read in a problem in SeDuMi format.
%%
%% [blk,A,C,b,perm] = read_sedumi(fname,b,c,K)
%%
%% Input: fname.mat = name of the file containing SDP data in
%% SeDuMi format.
%%
%% Important note: Sedumi's notation for free variab... |
github | xyza11808/MATLAB-master | qprod.m | .m | MATLAB-master/ca_source_extraction-master/cvx/sdpt3/Solver/qprod.m | 655 | utf_8 | 2d6550b139b2dfcf3d134f61deec3686 | %%***************************************************
%% qprod:
%%
%% Input: A = [A1 A2 ... An]
%% x = [x1; x2; ...; xn]
%% Output: [A1*x1 A2*x2 ... An*xn]
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004
%%**************************************... |
github | xyza11808/MATLAB-master | nzlist.m | .m | MATLAB-master/ca_source_extraction-master/cvx/sdpt3/Solver/nzlist.m | 5,014 | utf_8 | 1225b63fe9e00df09546243f60599dc2 | %%***********************************************************************
%% nzlist: find the combined list of non-zero elements
%% of Aj, j = 1:k, for each k,
%% assuming that the Aj's are permuted such that
%% A1 has the fewest nonzero elements, followed by A2, and so on.
%%
%% [isspA,nzlistA,... |
github | xyza11808/MATLAB-master | detect_lblk.m | .m | MATLAB-master/ca_source_extraction-master/cvx/sdpt3/Solver/detect_lblk.m | 4,228 | utf_8 | a69e3486a171d0169d9b62b749ed6cd8 | %%*******************************************************************
%% detect_lblk: detect diagonal blocks in the SDP data.
%%
%% [blk,At,C,diagblkinfo,blockchange,parbarrier,X,Z] = ...
%% detect_lblk(blk,At,C,b,parbarrier,X,Z);
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. ... |
github | xyza11808/MATLAB-master | gdcomp.m | .m | MATLAB-master/ca_source_extraction-master/cvx/sdpt3/Solver/gdcomp.m | 4,877 | utf_8 | edb240000afc00b0bd8d14fdc4ab944c | %%*********************************************************************
%% gdcomp: Compute gd = 1/td in Equation (15) of the paper:
%%
%% R.M. Freund, F. Ordonez, and K.C. Toh,
%% Behavioral measures and their correlation with IPM iteration counts
%% on semi-definite programming problems,
%% Mathematical Programming, 1... |
github | xyza11808/MATLAB-master | blkbarrier.m | .m | MATLAB-master/ca_source_extraction-master/cvx/sdpt3/Solver/blkbarrier.m | 1,795 | utf_8 | 77a6eb1f1708aa69217000d27735efa0 | %%********************************************************************
%% blkbarrier: calculate
%% [-v(p)*logdet(X{p}), v(p)*logdet(Z{p}) + n*v(p)*(1-log(v(p)))]
%% [-v(p)*log(gam(X{p})), v(p)*log(gam(Z{p})) + v(p)]
%% [-v(p)*log(X{p}), v(p)*log(Z{p}) + n*v(p)*(1-log(v(p)))]
%%***********************************... |
github | xyza11808/MATLAB-master | sqlpmain.m | .m | MATLAB-master/ca_source_extraction-master/cvx/sdpt3/Solver/sqlpmain.m | 29,812 | utf_8 | 97c549fe923480dc73e59887089d5656 | %%*************************************************************************
%% sqlp: main solver
%%
%%*************************************************************************
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004
%%****************************... |
github | xyza11808/MATLAB-master | HKMpred.m | .m | MATLAB-master/ca_source_extraction-master/cvx/sdpt3/Solver/HKMpred.m | 2,818 | utf_8 | da0e8d9efacd9a7cebaae5ea2ad63de9 | %%*******************************************************************
%% HKMpred: 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
%%*******************************************************************
func... |
github | xyza11808/MATLAB-master | read_sdpa.m | .m | MATLAB-master/ca_source_extraction-master/cvx/sdpt3/Solver/read_sdpa.m | 7,591 | utf_8 | 211ea10474df1ffe50a0c5456e1cbe41 | %%*******************************************************************
%% Read in a problem in SDPA sparse format.
%%
%% [blk,At,C,b] = read_sdpa(fname)
%%
%% Input: fname = name of the file containing SDP data in
%% SDPA foramt.
%% Important: the data is assumed to contain only
%% semide... |
github | xyza11808/MATLAB-master | sortA.m | .m | MATLAB-master/ca_source_extraction-master/cvx/sdpt3/Solver/sortA.m | 2,639 | utf_8 | c998ea7df87432b78f6c001d0bbc5318 | %%*********************************************************************
%% 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 | xyza11808/MATLAB-master | blkeig.m | .m | MATLAB-master/ca_source_extraction-master/cvx/sdpt3/Solver/blkeig.m | 2,412 | utf_8 | 97da97f8165585de45eae52a86e0f127 | %%***************************************************************************
%% blkeig: compute eigenvalue decomposition of a cell array
%% whose contents are square matrices or the diagonal
%% of a diagonal matrix.
%%
%% [d,V] = blkeig(blk,X);
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. ... |
github | xyza11808/MATLAB-master | HKMrhsfun.m | .m | MATLAB-master/ca_source_extraction-master/cvx/sdpt3/Solver/HKMrhsfun.m | 3,358 | utf_8 | b1e6a8305128af799634b9ef7324cfeb | %%*******************************************************************
%% HKMrhsfun: 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 | xyza11808/MATLAB-master | linsysolve.m | .m | MATLAB-master/ca_source_extraction-master/cvx/sdpt3/Solver/linsysolve.m | 7,741 | utf_8 | 2091e9d1c0858acfd5c4e07842ed787d | %%***************************************************************
%% linsysolve: solve linear system to get dy, and direction
%% corresponding to unrestricted variables.
%%
%% [xx,coeff,L,resnrm] = linsysolve(schur,UU,Afree,EE,rhs);
%%
%% child functions: symqmr.m, mybicgstable.m, linsysolvefun.m
%%
%% SDPT... |
github | xyza11808/MATLAB-master | schurmat_qblk.m | .m | MATLAB-master/ca_source_extraction-master/cvx/sdpt3/Solver/schurmat_qblk.m | 3,205 | utf_8 | d154ddca57828c83c43efd37fbe64829 | %%*******************************************************************
%% schurmat_qblk: compute schur matrix corresponding to SOCP blocks.
%%
%% HKM direction: output = schur + Ax*Ae' + Ae*Ax' - Ad*Ad'
%% NT direction: output = schur + Ae*Ae' - Ad*Ad'
%%
%% where schur = A*D*A', and Ad is the modification to ADA'
%% s... |
github | xyza11808/MATLAB-master | ops.m | .m | MATLAB-master/ca_source_extraction-master/cvx/sdpt3/Solver/ops.m | 11,548 | utf_8 | 0931c97ce9eb7f01a28fac581153ca1c | %%******************************************************************
%% ops:
%%
%% Z = ops(X,operand,Y,alpha);
%%
%% INPUT: X = a matrix or a scalar
%% or a CELL ARRAY consisting only of matrices
%% operand = sym, transpose, triu, tril,
%% real, imag, sqrt, abs, ... |
github | xyza11808/MATLAB-master | schurmat_lblk.m | .m | MATLAB-master/ca_source_extraction-master/cvx/sdpt3/Solver/schurmat_lblk.m | 1,010 | utf_8 | 11b66919604e457c631f5ed67225fc45 | %%*******************************************************************
%% schurmat_lblk: compute A*D*A'
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004
%%*******************************************************************
function [schur,UU,EE] = schu... |
github | xyza11808/MATLAB-master | sqlpmisc.m | .m | MATLAB-master/ca_source_extraction-master/cvx/sdpt3/Solver/sqlpmisc.m | 4,078 | utf_8 | 1dc032b6e1fd72eb26f2f3e519a746dd | %%*****************************************************************************
%% sqlpmisc:
%% unscale and produce infeasibility certificates if appropriate
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004.
%%******************************************... |
github | xyza11808/MATLAB-master | checkdense.m | .m | MATLAB-master/ca_source_extraction-master/cvx/sdpt3/Solver/checkdense.m | 730 | utf_8 | 6d44b41643ef16f78b42927e1fc03dd8 | %%********************************************************************
%% checkdense : identify the dense columns of a matrix
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004
%%********************************************************************
funct... |
github | xyza11808/MATLAB-master | NTrhsfun.m | .m | MATLAB-master/ca_source_extraction-master/cvx/sdpt3/Solver/NTrhsfun.m | 4,253 | utf_8 | 51c74223afc232c456def8488b51aa3f | %%*******************************************************************
%% NTrhsfun: 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 | xyza11808/MATLAB-master | SDPvalBounds.m | .m | MATLAB-master/ca_source_extraction-master/cvx/sdpt3/Solver/SDPvalBounds.m | 1,843 | utf_8 | fa3af856805cc15685c38e69218a8ffb | %%*****************************************************************
%% compute lower and upper bounds for the exact primal
%% optimal value.
%%
%% LB <= true optimal dual value = true optimal primal value <= UB.
%%
%%*****************************************************************
function [LB,UB] = SDPvalBo... |
github | xyza11808/MATLAB-master | NTscaling.m | .m | MATLAB-master/ca_source_extraction-master/cvx/sdpt3/Solver/NTscaling.m | 1,847 | utf_8 | 82a266e8bf9cf33993f0bff10650c15c | %%**********************************************************************
%% NTscaling: Compute NT scaling matrix
%%
%% 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)) * (invZchol*V)'
%... |
github | xyza11808/MATLAB-master | linsysolvefun.m | .m | MATLAB-master/ca_source_extraction-master/cvx/sdpt3/Solver/linsysolvefun.m | 1,276 | utf_8 | 7ca4a2896ad33a210a95d53138f0676f | %%*************************************************************************
%% linsysolvefun: Solve H*x = b
%%
%% x = linsysolvefun(L,b)
%% where L contains the triangular factors of H.
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004
%%***************... |
github | xyza11808/MATLAB-master | sqlpdemo.m | .m | MATLAB-master/ca_source_extraction-master/cvx/sdpt3/Solver/sqlpdemo.m | 6,011 | utf_8 | 793deabad8688259781993ce346cea24 | %%*****************************************************************
%% Examples of SQLP.
%%
%% this is an illustration on how to use our SQLP solvers
%% coded in sqlp.m
%%
%% feas = 1 if want feasible initial iterate
%% = 0 otherwise
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tu... |
github | xyza11808/MATLAB-master | gpcomp.m | .m | MATLAB-master/ca_source_extraction-master/cvx/sdpt3/Solver/gpcomp.m | 5,095 | utf_8 | 7e23e98588f834156a9f13545f77cb3b | %%*********************************************************************
%% gpcomp: Compute tp=1/gp in Proposition 2 of the paper:
%%
%% R.M. Freund, F. Ordonez, and K.C. Toh,
%% Behavioral measures and their correlation with IPM iteration counts
%% on semi-definite programming problems,
%% Mathematical Programming, 109... |
github | xyza11808/MATLAB-master | sqlparameters.m | .m | MATLAB-master/ca_source_extraction-master/cvx/sdpt3/Solver/sqlparameters.m | 5,137 | utf_8 | 76bbd09e284250f7770836baabcc95e5 | %%*************************************************************************
%% parameters.m: set OPTIONS structure to specify default
%% parameters for sqlp.m
%%
%% OPTIONS.vers : version of direction to use.
%% 1 for HKM direction
%% 2 for NT direction
%... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.