File tree Expand file tree Collapse file tree 1 file changed +0
-24
lines changed
Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -84,28 +84,4 @@ def _compress_snapshots(self):
8484 self ._compression_matrix = Q .conj ().T
8585 self ._test_matrix = Omega
8686
87- # # Define the random test matrix if not provided.
88- # if self._test_matrix is None:
89- # m = self.snapshots.shape[-1]
90- # r = compute_rank(self.snapshots, self._svd_rank)
91- # self._test_matrix = np.random.randn(m, r + self._oversampling)
92-
93- # # Compute sampling matrix.
94- # Y = self.snapshots.dot(self._test_matrix)
95-
96- # # Perform power iterations.
97- # for _ in range(self._power_iters):
98- # Q = np.linalg.qr(Y)[0]
99- # Z = np.linalg.qr(self.snapshots.conj().T.dot(Q))[0]
100- # Y = self.snapshots.dot(Z)
101-
102- # # Orthonormalize the sampling matrix.
103- # Q = np.linalg.qr(Y)[0]
104-
105- # # Project the snapshot matrix onto the smaller space.
106- # B = Q.conj().T.dot(self.snapshots)
107-
108- # # Save the compression matrix.
109- # self._compression_matrix = Q.conj().T
110-
11187 return B
You can’t perform that action at this time.
0 commit comments