Edit this page

Installation methods

There are two ways to install and use the ParaMonte library from MATLAB on your system:

The fast way

  1. Download and untar/unzip the prebuilt MATLAB package for ParaMonte from the project repository’s release page on GitHub:
    • For Windows with AMD64 (Intel) processor: libparamonte_matlab_windows_amd64.zip.
    • For Linux with AMD64 (Intel) processor: libparamonte_matlab_linux_amd64.tar.gz.
    • For macOS (Darwin) with AMD64 (Intel) processor: Follow the instruction below to download the ParaMonte MATLAB prebuilt library.

    • For macOS (Darwin) with ARM64 processor (M1, M2, M3, M4, etc.): Follow the instruction below to download the ParaMonte MATLAB prebuilt library.

  2. Follow further instructions below for the first-time usage.

The long way

If,

  • the ParaMonte prebuilt library is not available for your platform, or,
  • your system’s architecture is other than those supported by the pre-built libraries, or,
  • you are testing a ParaMonte library pre-release, or,
  • you are a professional programmer yearning to challenge your computer programming knowledge and skills,

then the last resort to install the ParaMonte MATLAB library is to build the library from scratch on your system. In such a case, you will have to follow the special instructions given for your platform on this website,

See also the pre-installation notes and the quick installation guidelines.

Once the library build and installation is complete, follow further instructions below for the first-time usage.

First-time usage

  1. Either,
    • open a ParaMonte-compatible MATLAB session as listed above from the Operating System’s search box, or,
    • open a MATLAB session from the command line:
      • On Windows, open a CMD terminal that recognizes the MATLAB software.
      • On Linux, open a bash terminal or zsh terminal.
      • On macOS, open a zsh terminal.
      • Open a MATLAB session by calling it on the command line via,
        matlab
        
  2. Once the MATLAB interactive environment opens, change the current working directory of MATLAB to the root directory of the ParaMonte library (where the ParaMonte library license file exists). You can do this on the MATLAB command prompt as,
    cd path_to_the_root_directory_of_paramonte
    

    where you will have to replace the path_to_the_root_directory_of_paramonte with the root path to the ParaMonte library on your system. The root path is the path to the directory where the ParaMonte LICENSE.md file exists.

  3. Call the ParaMonte library for the first time via the following commands (simply type the commands on the MATLAB command prompt),
    addpath('./', '-begin'); % add the ParaMonte library package root directory to MATLAB's list of search paths.
    pm.lib.verify(); % verify the integrity of the ParaMonte library on your system (also searches for the relevant MPI library on your system).
    

    If needed, follow any extra instructions provided by the library on your MATLAB command prompt.

  4. You are all set! Enjoy the unification of simplicity, high-performance, parallelism, thoroughness, and advanced Monte Carlo algorithms and Machine Learning, all in one place. See the ParaMonte MATLAB documentation for detailed functionalities and examples.


If you have any questions about the topics discussed on this page, feel free to ask in the comment section below, or raise an issue on the GitHub page of the library, or reach out to the ParaMonte library authors.