ParaMonte MATLAB 3.0.0
Parallel Monte Carlo and Machine Learning Library
See the latest version documentation.
root.m
Go to the documentation of this file.
1%> \brief
2%> Return a scalar MATLAB string containing the
3%> root directory of the ParaMonte library package.
4%>
5%> \return
6%> ``path`` : A scalar MATLAB string containing the root
7%> directory of the ParaMonte library package.<br>
8%>
9%> \interface{root}
10%> \code{.m}
11%>
12%> path = pm.lib.path.root()
13%>
14%> \endcode
15%>
16%> \example{root}
17%> \include{lineno} example/lib/path/root/main.m
18%> \output{root}
19%> \include{lineno} example/lib/path/root/main.out.m
20%>
21%> \final{root}
22%>
23%> \author
24%> \JoshuaOsborne, May 21 2024, 7:51 PM, University of Texas at Arlington<br>
25%> \FatemehBagheri, May 20 2024, 1:25 PM, NASA Goddard Space Flight Center (GSFC), Washington, D.C.<br>
26%> \AmirShahmoradi, May 16 2016, 9:03 AM, Oden Institute for Computational Engineering and Sciences (ICES), UT Austin<br>
27function path = root()
28 persistent path_persistent
29 if isempty(path_persistent)
30 [path_persistent, ~, ~] = fileparts(mfilename('fullpath'));
31 path_persistent = string(pm.sys.path.abs(fullfile(path_persistent, "..", "..")));
32 end
33 path = path_persistent;
34 %addpath(genpath(tree.root),'-begin');
35end
function abs(in path, in style)
Return the Get absolute canonical path of a file or folder.
function lib()
Return a scalar MATLAB string containing the path to the lib directory of the ParaMonte library packa...
function root()
Return a scalar MATLAB string containing the root directory of the ParaMonte library package.