Updating: improving libats/gmatrix