This page explains the performance characteristics of LinAlgKit and how to reproduce benchmark results.
determinant(): Bareiss fraction-free LU with partial pivoting; O(n^3), stable for integer matrices.determinant_naive(): Laplace expansion; O(n!) ā only for tiny matrices/testing.Build with benchmarks enabled and run the harness:
mkdir -p ~/matrixlib_build && cd ~/matrixlib_build
cmake -G "Unix Makefiles" -DBUILD_BENCHMARKS=ON /path/to/repo
cmake --build . -j
python3 /path/to/repo/scripts/run_benchmarks.py --build-dir . --csv results.csv --plot results.png
The harness saves a CSV from Google Benchmark and optionally a simple bar plot (if matplotlib is installed).
real_time is the per-iteration runtime (ns), averaged over repetitions.Release for meaningful numbers.