Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 806 Bytes

File metadata and controls

38 lines (26 loc) · 806 Bytes

dr-eigs

Utilities for eigendecomposition of sparse matrices via Spectra

Build

Use CMake to build

⚠️ Currently only tested with Clang and GCC. MSVC is not supported.

mkdir build
cmake -S . -B ./build -G <generator> [-DDR_EIGS_TEST=ON]
cmake --build ./build [--config <config>]

Usage

Use FetchContent to include in another CMake build

include(FetchContent)

FetchContent_Declare(
    dr-eigs
    GIT_REPOSITORY https://github.com/davreev/dr-eigs.git
    GIT_TAG <revision>
)

# Creates target "dr::eigs"
FetchContent_MakeAvailable(dr-eigs)

# Link other targets e.g.
add_executable(my-app main.cpp)
target_link_libraries(my-app PRIVATE dr::eigs)