#pragma once #include "./decomp/lu.h" namespace numerics{ template void inplace_inverse_lu(utils::Matrix& A){ if (A.rows() != A.cols()){ throw std::runtime_error("numerics inverse_lu: non-square matrix"); } decomp::LUdcmp lu(A); lu.inplace_inverse(A); } }