main()
function and use only functions/classes from Armadillo and the standard C++ library (no other libraries).
We appreciate your time to make a bug report.
Conrad Sanderson and Ryan Curtin.
Armadillo: a template-based C++ library for linear algebra.
Journal of Open Source Software, Vol. 1, No. 2, pp. 26, 2016.
Conrad Sanderson and Ryan Curtin.
Practical Sparse Matrices in C++ with Hybrid Storage and Template-Based Expression Optimisation.
Mathematical and Computational Applications, Vol. 24, No. 3, 2019.
g++ prog.cpp -o prog -std=c++11 -O2 -larmadillo
ARMA_DONT_USE_WRAPPER
before including the armadillo header.
For example:
#define ARMA_DONT_USE_WRAPPER #include <armadillo>
-lopenblas
to -lblas -llapack
and on macOS change -lopenblas
to -framework Accelerate
-O3
optimisation.
Same applies to recent versions of the clang compiler.
For example, compile your code using:
g++ prog.cpp -o prog -O3 -larmadilloTo get further speedups (ie. to use AVX instructions), or to enable SSE2 on 32 bit machines, add the
-march=native
option.
For example:
g++ prog.cpp -o prog -O3 -march=native -larmadillo
g++ prog.cpp -o prog -O3 -larmadillo -std=c++11 -fopenmp
ensmallen | fast non-linear numerical optimisation library | |
mlpack | extensive library of machine learning algorithms | |
SigPack | C++ signal processing library | |
PyArmadillo | linear algebra library for Python with Matlab-like syntax | |
Rehuel | C++ library for solving ordinary differential equations | |
SOT | surrogate based optimization algorithms | |
numerics | various numerical algorithms (interpolation, integration, differential equations, finite difference methods, etc) | |
GDB Armadillo helpers | pretty printers for debugging Armadillo-based code with GDB | |
CARMA | bidirectional interface between Python (Numpy) and Armadillo | |
PyJet | speed up Python / NumPy code via automatic conversion to C++ | |
matlab2cpp | tool for converting Matlab code to C++ | |
RcppArmadillo | bridge between R and Armadillo, used by 800+ R packages | |
nmflibrary | distributed non-negative matrix factorisation | |
SmartGridToolbox | Smart Grid simulation library | |
libpca | principal component analysis library | |
gplib | C++ Gaussian process library | |
foreground | robust foreground estimation / background subtraction algorithm | |
GRASTA | low rank subspace object tracking | |
background_est | clean background estimation from cluttered scenes | |
ERKALE | quantum chemistry | |
SMART+ | analysis of mechanics of materials | |
QIClib | Quantum Information and Computation library | |
NeuralNet | GPU / CPU implementation of a feed forward neural network | |
AVRS | acoustic virtual reality system | |
bnp | inference in a hierarchical Dirichlet process model | |
KL1p | compressed sensing / sparse coding | |
Gadgetron | medical image reconstruction | |
molotov | motif locator (genetics) | |
OptGpSampler | sampling genome-scale metabolic networks | |
GStream | genetics (SNP and CNV genotyping) | |
Vespucci | tool for spectroscopic data analysis and imaging | |
GNSS-SDR | global navigation satellite system receiver | |
ECOC PAK | error correcting output codes | |
Flow123d | simulator of underground water flow | |
L0Learn | efficient algorithms for L0 regularised learning | |
suanPan | parallel and heterogeneous finite element analysis framework |