add compute method to get a matrix from a dpkg