diff options
author | KatolaZ <katolaz@yahoo.it> | 2015-05-12 12:24:26 +0100 |
---|---|---|
committer | KatolaZ <katolaz@yahoo.it> | 2015-05-12 12:24:26 +0100 |
commit | 103290dd44d2a774c4c043e5340caa460b7dd56c (patch) | |
tree | c6e8d4dfc0cf0765ecc6e652e4939ff14d93a62d | |
parent | f6c8d6f8691ce36546abb115054d466f1f35f532 (diff) |
removed a remaining call to np.eye()
-rw-r--r-- | python/multired.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/multired.py b/python/multired.py index 06fbc79..69f99af 100644 --- a/python/multired.py +++ b/python/multired.py @@ -160,7 +160,7 @@ class layer: def compute_VN_entropy_approx(self, poly): p = poly.degree h = - poly[p] * self.N - M = csr_matrix(np.eye(self.N)) + M = csr_matrix(eye(self.N)) for i in range(p-1, -1, -1): M = M * self.resc_laplacian h += - poly[i] * sum(M.diagonal()) |