pymor.algorithms.randrangefinder
¶
Module Contents¶
Functions¶
Adaptive randomized range approximation of |
|
Randomized range approximation of |
- pymor.algorithms.randrangefinder.adaptive_rrf(A, source_product=None, range_product=None, tol=0.0001, failure_tolerance=1e-15, num_testvecs=20, lambda_min=None, iscomplex=False)[source]¶
Adaptive randomized range approximation of
A
.This is an implementation of Algorithm 1 in [BS18].
Given the
Operator
A
, the return value of this method is theVectorArray
B
with the property\[\Vert A - P_{span(B)} A \Vert \leq tol\]with a failure probability smaller than
failure_tolerance
, where the norm denotes the operator norm. The inner product of the range ofA
is given byrange_product
and the inner product of the source ofA
is given bysource_product
.Parameters
- A
The
Operator
A.- source_product
Inner product
Operator
of the source of A.- range_product
Inner product
Operator
of the range of A.- tol
Error tolerance for the algorithm.
- failure_tolerance
Maximum failure probability.
- num_testvecs
Number of test vectors.
- lambda_min
The smallest eigenvalue of source_product. If
None
, the smallest eigenvalue is computed using scipy.- iscomplex
If
True
, the random vectors are chosen complex.
Returns
- B
VectorArray
which contains the basis, whose span approximates the range of A.
- pymor.algorithms.randrangefinder.rrf(A, source_product=None, range_product=None, q=2, l=8, iscomplex=False)[source]¶
Randomized range approximation of
A
.This is an implementation of Algorithm 4.4 in [HMT11].
Given the
Operator
A
, the return value of this method is theVectorArray
Q
whose vectors form an approximate orthonomal basis for the range ofA
.Parameters
Returns
- Q
VectorArray
which contains the basis, whose span approximates the range of A.