diff options
| author | y-jan137 <yousefjan24000@gmail.com> | 2026-03-14 22:10:21 +0300 |
|---|---|---|
| committer | y-jan137 <yousefjan24000@gmail.com> | 2026-03-14 22:10:21 +0300 |
| commit | a5ca13e44165ee8a3420a57b95bcf84437a81dce (patch) | |
| tree | cfefc81276e76b5a732d7bcbac358fcfa121ff1e /CMakeLists.txt | |
| parent | 7db0d82731ababdf0b2f4d986dd54da3b4650954 (diff) | |
Add LU and experiment
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 54f9d5b..87cd6a3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,6 +17,7 @@ add_library(linear_algebra src/matrix.cpp src/norms.cpp src/triangular_solve.cpp + src/lu.cpp ) add_library(linear_algebra::core ALIAS linear_algebra) @@ -60,6 +61,12 @@ if(LINEAR_ALGEBRA_BUILD_EXAMPLES) target_link_libraries(matmul PRIVATE linear_algebra::core) endif() +option(LINEAR_ALGEBRA_BUILD_EXPERIMENTS "Build experiment programs" ON) +if(LINEAR_ALGEBRA_BUILD_EXPERIMENTS) + add_executable(pivoting_vs_no_pivoting experiments/pivoting_vs_no_pivoting.cpp) + target_link_libraries(pivoting_vs_no_pivoting PRIVATE linear_algebra::core) +endif() + if(LINEAR_ALGEBRA_BUILD_TESTS) include(FetchContent) endif() @@ -80,6 +87,7 @@ if(LINEAR_ALGEBRA_BUILD_TESTS) tests/test_vector.cpp tests/test_matrix.cpp tests/test_triangular_solve.cpp + tests/test_lu.cpp ) target_link_libraries(linear_algebra_tests |