Optimization of LinSys::get_matrix method.

- remove -Wreturn-type warning