Skip to content

Commit

Permalink
Merge pull request #336 from vaerksted/master
Browse files Browse the repository at this point in the history
fix typos
  • Loading branch information
ViralBShah authored Jul 20, 2023
2 parents c91cfbc + f9c3e21 commit df5b2fe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/src/eigenproblems/power_method.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ invpowm!
```

## Implementation details
Storage requirements are 3 vectors: the approximate eigenvector `x`, the residual vector `r` and a temporary. The residual norm lags behind one iteration, as it is computed when $Ax$ is performed. Therefore the final resdiual norm is even smaller.
Storage requirements are 3 vectors: the approximate eigenvector `x`, the residual vector `r` and a temporary. The residual norm lags behind one iteration, as it is computed when $Ax$ is performed. Therefore the final residual norm is even smaller.
2 changes: 1 addition & 1 deletion docs/src/linear_systems/bicgstabl.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# [BiCGStab(l)](@id BiCGStabl)

BiCGStab(l) solves the problem $Ax = b$ approximately for $x$ where $A$ is a general, linear operator and $b$ the right-hand side vector. The methods combines BiCG with $l$ GMRES iterations, resulting in a short-reccurence iteration. As a result the memory is fixed as well as the computational costs per iteration.
BiCGStab(l) solves the problem $Ax = b$ approximately for $x$ where $A$ is a general, linear operator and $b$ the right-hand side vector. The methods combines BiCG with $l$ GMRES iterations, resulting in a short-recurrence iteration. As a result the memory is fixed as well as the computational costs per iteration.

## Usage

Expand Down
4 changes: 2 additions & 2 deletions src/history.jl
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ function reserve!(typ::Type, ch::ConvergenceHistory, key::Symbol, kwargs...)
_reserve!(typ, ch, key, kwargs...)
end

#If partialhistory, theres no need to store a vector or matrix, instead
#store nothing or store a vector respectively.
# If PartialHistory, there's no need to store a vector or matrix, instead
# store nothing or store a vector respectively.
_reserve!(typ::Type, ch::PartialHistory, key::Symbol, ::Int) = nothing
function _reserve!(typ::Type, ch::PartialHistory, key::Symbol, ::Int, size::Int)
ch.data[key] = Vector{typ}(undef, size)
Expand Down

0 comments on commit df5b2fe

Please sign in to comment.