-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstartup.m
executable file
·38 lines (34 loc) · 1.81 KB
/
startup.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% generic linear dimensionality reduction
% Copyright (C) 2014 John P. Cunningham (see full notice in README)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% John P. Cunningham, 2014
% This is a startup file which initializes Matlab's settings to
% allow for use of this package.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
path(sprintf('%s/util', pwd), path) % Adds the subdirectories of the root folder to the path, allowing us to call functions from them.
path(sprintf('%s/test', pwd), path)
path(sprintf('%s/results', pwd), path)
path(sprintf('%s/get_subspaces', pwd), path)
% add manopt subdir
path(sprintf('%s/util/manopt', pwd), path)
cd util/manopt
importmanopt
cd ../..
% now to verify, we can follow with
% run('util/manopt/checkinstall/basicexample.m')
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% The following code checks for the relevant MEX files (such as .mexa64
% or .mexglx, depending on the machine architecture), and it creates the
% mex file if it can not find the right one.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Create the mex file if necessary.
% this template project has no MEX, but if relevant, there is good
% functionality in startup_checkMEX (see toeplitz project)
% startup_checkMEX('decomp', 'logdetToeplitzFastZohar') % Toeplitz log determinant
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%This simply clears all variables and closes all windows opened by Matlab.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
clear all % Clears all variables.
close all % Closes all windows opened by Matlab.