blob: bff4b37f5c9ac7ff01b98e9bf9eb89ba40d1f493 [file]
This directory contains a BLAS library built on top of Eigen.
The libraries are part of the default build when Eigen is the top-level
project (EIGEN_BUILD_BLAS); 'make blas' builds them alone.
On 64-bit platforms, 'make blas' builds both 32-bit integer (LP64: eigen_blas,
eigen_blas_static) and 64-bit integer (ILP64: eigen_blas_ilp64,
eigen_blas_ilp64_static) libraries by default (controlled by
EIGEN_BUILD_BLAS_ILP64).
The shared libraries always use the default Eigen::Index internally: a build
that narrows EIGEN_DEFAULT_DENSE_INDEX_TYPE for its C++ code does not narrow
the sizes, increments and leading dimensions they accept. Static archives
must use the same Eigen::Index as their C++ callers to avoid ODR mismatches,
so static ILP64 archives require a 64-bit Eigen::Index.
Tests: 'make buildtests_blas' builds them and 'ctest -L blas' runs them. With
a Fortran compiler, these include netlib's reference BLAS test drivers. With
-DEIGEN_TEST_BLAS_REFERENCE=ON, blas_reference also compares every routine
with netlib's reference BLAS, which CMake downloads with Reference-LAPACK.