Setup Armadillo and BLAS

How to install BLAS and LPACK on Mac

※ When it comes to install LAPACK, change the name of make.inc.example to make.inc

Also the content of the make.inc is following:

####################################################################
#  LAPACK make include file.                                       #
#  LAPACK, Version 3.7.0                                           #
#  December 2016                                                   #
####################################################################
#
SHELL = /bin/sh

FORTRAN  = gfortran
OPTS     = -O2 -frecursive
DRVOPTS  = $(OPTS)
NOOPT    = -O0 -frecursive
LOADER   = gfortran
LOADOPTS =

CC = gcc
CFLAGS = -O3

ARCH     = ar
ARCHFLAGS= cr
RANLIB   = ranlib

BLASLIB      = /usr/local/lib/libblas.a
CBLASLIB     = ../../libcblas.a
LAPACKLIB    = liblapack.a
TMGLIB       = libtmglib.a
LAPACKELIB   = liblapacke.a

Armadillo can be installed using brew.

brew install armadillo

results matching ""

    No results matching ""