Getting Started
MTL5 is a header-only C++20 linear algebra library. This guide will get you up and running quickly.
Requirements
Section titled “Requirements”- CMake 3.22+
- C++20 compiler: GCC 11+, Clang 14+, Apple Clang 15+, MSVC 2022+
- Catch2 v3 (fetched automatically for tests)
Quick Install
Section titled “Quick Install”git clone https://github.com/stillwater-sc/mtl5.gitcd mtl5cmake --preset devcmake --build build -j$(nproc)ctest --test-dir buildCMake Integration
Section titled “CMake Integration”As a subdirectory
Section titled “As a subdirectory”add_subdirectory(mtl5)target_link_libraries(my_app PRIVATE mtl5::mtl5)With find_package
Section titled “With find_package”find_package(mtl5 REQUIRED)target_link_libraries(my_app PRIVATE mtl5::mtl5)With FetchContent
Section titled “With FetchContent”include(FetchContent)FetchContent_Declare( mtl5 GIT_REPOSITORY https://github.com/stillwater-sc/mtl5.git GIT_TAG main)FetchContent_MakeAvailable(mtl5)target_link_libraries(my_app PRIVATE mtl5::mtl5)