Commit 52f922a
Update bopdmd.py for better memory efficiency
This change request modifies the `_initialize_alpha` function in the dynamic mode decomposition implementation to enhance memory efficiency. The original implementation created a large diagonal matrix `T`, which led to excessive memory consumption for large datasets.
**Key Change**:
1. **Avoid Full Matrix Construction**: Replaced the construction of the full diagonal matrix `T` with direct element-wise operations. This approach significantly reduces memory usage.
With these change, I can handle larger datasets without encountering memory allocation errors.1 parent 09e8134 commit 52f922a
1 file changed
+1
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1365 | 1365 | | |
1366 | 1366 | | |
1367 | 1367 | | |
1368 | | - | |
1369 | | - | |
1370 | | - | |
1371 | | - | |
1372 | | - | |
1373 | 1368 | | |
1374 | 1369 | | |
1375 | 1370 | | |
1376 | | - | |
| 1371 | + | |
1377 | 1372 | | |
1378 | 1373 | | |
1379 | 1374 | | |
| |||
0 commit comments