All of the examples can be compiled with CMake using the commands below:
cd ..
cmake -DBUILD_TESTING=OFF -DBUILD_TATAMI_GALLERY=ON -S . -B build
cmake --build build
This generates executables in the build/gallery
subdirectory:
colsums
: use various extraction methods for a typicaltatami::numeric_matrix
to compute the column sums.parallel
: compute row sums in parallel with OpenMP.char2double
: store integers aschar
to save memory, but return them asdouble
s for downstream use.sparse_workspace
: compare sparse matrix access speeds with and without a workspace.
Each executable is named after the C++ source file from which they were generated. Each file contains some commentary explaining the rationale behind each example.