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
OperatorA, the return value of this method is theVectorArrayBwith 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 ofAis given byrange_productand the inner product of the source ofAis given bysource_product.Parameters
- A
The
OperatorA.- source_product
Inner product
Operatorof the source of A.- range_product
Inner product
Operatorof 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
VectorArraywhich 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
OperatorA, the return value of this method is theVectorArrayQwhose vectors form an approximate orthonomal basis for the range ofA.Parameters
Returns
- Q
VectorArraywhich contains the basis, whose span approximates the range of A.