

I assume that you have latest stable version of Visual Studio installed, currently this is 2017, and that you can create, compile and execute a simple C++ code from the IDE. Next, go to the section that matches your OS: Windows, Mac or Linux. Alternatively, you can check Intel’s documentation page for their C wrapper for SGEMM. If you want to have a taste of how elaborate is to directly use functions from BLAS or LAPACK, check the documentation for the reference implementation of SGEMM which performs matrix-matrix multiplication. If you need to transfer data between Matlab and Armadillo check my other Armadillo article. Please note the Matlab like high level syntax: 1 #include 2 #include 3 4 int main ( int argc, const char ** argv ) Let’s start with a simple example of using Armadillo. I will guide you on how to install accelerated versions of BLAS and LAPACK for your operating system, in the install sections of this article. It is recommended that you install an optimized version of the above libraries on your system and not the reference implementations from Netlib. If your code uses some specialized Matlab toolbox, you will need to find another library to complement Armadillo or implement the missing functionality from scratch.Īrmadillo uses BLAS and LAPACK for matrix operations. Please note that Armadillo is not a drop in replacement for all Matlab functionality. Armadillo is particularly interesting for Matlab users that want to port their code to C++ for speed.

In this article, I will give you a quick introduction in how to get started with Armadillo, a C++ Matlab like Linear Algebra Library on Windows, Mac and Linux. Solarian Programmer My programming ramblings Home Archives Contact Privacy Getting started with Armadillo a C++ Linear Algebra Library on Windows, Mac and Linux Posted on Maby Paul
