Basic Tensor Algebra Subroutines (BTAS) is a C++ library for tensor algebra. BTAS is a reference implementation of Tensor Working Group concept spec. The library can be optionally used header-only at the cost of much lower performance for most operations.
- C++17 compiler
- CMake
- Boost C++ libraries
- Iterator
- (optional, but recommended) Container for fast small vectors
- (optional) Serialization for serialization (non-header-only)
- (used by default, strongly recommended, but can be disabled) BLAS+LAPACK libraries and their BLAS++/LAPACK++ C++ APIs for optimized operations (non-header-only)
TL;DR version
- cmake .
- make check
CMAKE_CXX_COMPILER
-- specifies the C++ compiler (by default CMake will look for the C++ compiler inPATH
)BTAS_USE_BLAS_LAPACK
-- specifies whether to enable the use of BLAS/LAPACK via the BLAS++/LAPACK++ APIs; the default isON
BTAS_BUILD_DEPS_FROM_SOURCE
-- specifies whether to enable building the missing dependencies (Boost) from source; the default isOFF
BUILD_TESTING
-- specifies whether to build unit tests; the default isON
TARGET_MAX_INDEX_RANK
-- specifies the rank for which the default BTAS index type will use stack; the default is6