Updating: improving libats/gmatrix.