Skip to content

Commit 77357e3

Browse files
sichinagamtezzele
authored andcommitted
Remove legacy code
1 parent d3fbe4d commit 77357e3

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

pydmd/rdmd.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)