ParaMonte MATLAB 3.0.0
Parallel Monte Carlo and Machine Learning Library
See the latest version documentation.
name.m
Go to the documentation of this file.
1%> \brief
2%> Return a MATLAB string containing the name of the current OS.
3%>
4%> \return
5%> ``str`` : The output MATLAB string that is either:<br>
6%> <ol>
7%> <li> ``"Linux"`` if the OS is Linux.
8%> <li> ``"Windows"`` if the OS is Windows.
9%> <li> ``"Darwin"`` if the OS is macOS (Darwin).
10%> </ol>
11%>
12%> \interface{name}
13%> \code{.m}
14%>
15%> str = pm.os.name()
16%>
17%> \endcode
18%>
19%> \example{name}
20%> \include{lineno} example/os/name/main.m
21%> \output{name}
22%> \include{lineno} example/os/name/main.out.m
23%>
24%> \final{name}
25%>
26%> \author
27%> \JoshuaOsborne, May 21 2024, 11:52 PM, University of Texas at Arlington<br>
28%> \FatemehBagheri, May 20 2024, 1:25 PM, NASA Goddard Space Flight Center (GSFC), Washington, D.C.<br>
29%> \AmirShahmoradi, May 16 2016, 9:03 AM, Oden Institute for Computational Engineering and Sciences (ICES), UT Austin<br>
30function str = name()
31 if ispc
32 str = "Windows";
33 elseif ismac
34 str = "Darwin";
35 elseif isunix
36 str = "Linux";
37 end
38end
function name(in vendor)
Return the MPI library name as used in naming the ParaMonte MATLAB shared library directories.