File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 33"""
44
55from functools import partial
6- from typing import Dict , Union
6+ from numbers import Number
7+ from typing import Dict
78
89import numpy as np
910
1011from pydmd .dmdbase import DMDBase
1112from pydmd .preprocessing import PrePostProcessingDMD
1213from pydmd .utils import compute_rqb
1314
14- svd_rank_type = Union [int , float ]
15-
1615
1716def randomized_preprocessing (
1817 dmd : DMDBase ,
19- svd_rank : svd_rank_type ,
18+ svd_rank : Number ,
2019 oversampling : int = 10 ,
2120 power_iters : int = 2 ,
2221 test_matrix : np .ndarray = None ,
@@ -49,7 +48,7 @@ def randomized_preprocessing(
4948def _pre (
5049 state : Dict ,
5150 X : np .ndarray ,
52- svd_rank : svd_rank_type ,
51+ svd_rank : Number ,
5352 oversampling : int ,
5453 power_iters : int ,
5554 test_matrix : np .ndarray ,
You can’t perform that action at this time.
0 commit comments