Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/properties.jl
Original file line number Diff line number Diff line change
Expand Up @@ -414,15 +414,15 @@ These parameters can be adjusted by passing `maxit` and `tol` keyword arguments.
julia> estimate_opnorm(A; maxit=50, tol=1e-6)
```
"""
function estimate_opnorm(A::AbstractOperator; maxit=20, tol=1e-4)
function estimate_opnorm(A::AbstractOperator; maxit=50, tol=eps(real(codomain_type(A)))*100)
if has_fast_opnorm(A)
return opnorm(A)
else
return powerit(A; maxit, tol)
end
end

function powerit(A::AbstractOperator; maxit=100, tol=1e-8)
function powerit(A::AbstractOperator; maxit=200, tol=eps(real(codomain_type(A)))*100)
# Power method for estimating the operator norm
AHA = A' * A
x = allocate_in_domain(A)
Expand Down
Loading