matrix.hpp C++ template class matrix Build OpenMP is needed. Enable OpenMP by -fopenmp flag. MacOS Build Install OpenMP by brew install libomp, and remember to use homebrew clang instead of apple clang.