ParaMonte MATLAB 3.0.0
Parallel Monte Carlo and Machine Learning Library
See the latest version documentation.
namel.m
Go to the documentation of this file.
1%> \brief
2%> Return a MATLAB string containing the lower-case 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{namel}
13%> \code{.m}
14%>
15%> str = pm.os.namel()
16%>
17%> \endcode
18%>
19%> \example{namel}
20%> \include{lineno} example/os/namel/main.m
21%> \output{namel}
22%> \include{lineno} example/os/namel/main.out.m
23%>
24%> \final{namel}
25%>
26%> \author
27%> \JoshuaOsborne, May 21 2024, 11:53 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 result = namel()
31 if ispc
32 result = "windows";
33 elseif ismac
34 result = "darwin";
35 elseif isunix
36 result = "linux";
37 end
38end
function name(in vendor)
Return the MPI library name as used in naming the ParaMonte MATLAB shared libraries.
function namel()
Return a MATLAB string containing the lower-case name of the current OS.