From 0d6a42e76d85ad3b0073f678ca34e25cdc9ceb1d Mon Sep 17 00:00:00 2001 From: spaette <111918424+spaette@users.noreply.github.com> Date: Thu, 19 Oct 2023 04:20:34 -0500 Subject: [PATCH] fix typos (#220) --- docs/src/custom.jl | 2 +- docs/src/history.md | 4 ++-- docs/src/types.md | 2 +- src/LinearMaps.jl | 2 +- src/khatrirao.jl | 2 +- src/trace.jl | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/src/custom.jl b/docs/src/custom.jl index 921fdad8..160b2bea 100644 --- a/docs/src/custom.jl +++ b/docs/src/custom.jl @@ -188,7 +188,7 @@ Base.delete_method( ) ) -# The seconnd option is when your class of linear maps that are modelled by your custom +# The second option is when your class of linear maps that are modelled by your custom # `LinearMap` subtype are invariant under taking adjoints and transposes. LinearAlgebra.adjoint(A::MyFillMap) = MyFillMap(adjoint(A.λ), reverse(A.size)) diff --git a/docs/src/history.md b/docs/src/history.md index 0f523d8d..8c720edc 100644 --- a/docs/src/history.md +++ b/docs/src/history.md @@ -131,7 +131,7 @@ ## What's new in v3.4 -* In `WrappedMap` constructors, as implicitly called in addition and mutliplication +* In `WrappedMap` constructors, as implicitly called in addition and multiplication of `LinearMap`s and `AbstractMatrix` objects, (conjugate) symmetry and positive definiteness are only determined for matrix types for which these checks are expected to be very cheap or even known at compile time based on the concrete type. The default @@ -160,7 +160,7 @@ ## What's new in v3.0 -* BREAKING change: Internally, any dependence on former `A*_mul_B!` methods is abandonned. +* BREAKING change: Internally, any dependence on former `A*_mul_B!` methods is abandoned. For custom `LinearMap` subtypes, there are now two options: 1. In case your type is invariant under adjoint/transposition (i.e., `adjoint(L::MyLinearMap)::MyLinearMap` similar to, for instance, diff --git a/docs/src/types.md b/docs/src/types.md index a3307150..1f3caf39 100644 --- a/docs/src/types.md +++ b/docs/src/types.md @@ -135,7 +135,7 @@ InverseMap Types for lazy [column-wise](https://en.wikipedia.org/wiki/Khatri%E2%80%93Rao_product#Column-wise_Kronecker_product) and [row-wise](https://en.wikipedia.org/wiki/Khatri%E2%80%93Rao_product#Face-splitting_product) -Kronecker product, respectively, also referrerd to +Kronecker product, respectively, also referred to as Khatri-Rao and transposed Khatri-Rao (or face-splitting) product. ```@docs diff --git a/src/LinearMaps.jl b/src/LinearMaps.jl index 53d2fef4..7b376058 100644 --- a/src/LinearMaps.jl +++ b/src/LinearMaps.jl @@ -368,7 +368,7 @@ representation `(M, N)`, i.e., for functions `f` acting on length `N` vectors an length `M` vectors (with default value `N=M`). Preferably, also the `eltype` `T` of the corresponding matrix representation needs to be specified, i.e., whether the action of `f` on a vector will be similar to, e.g., multiplying by numbers of type `T`. If not specified, -the devault value `T=Float64` will be assumed. Optionally, a corresponding function `fc` +the default value `T=Float64` will be assumed. Optionally, a corresponding function `fc` can be specified that implements the adjoint (or transpose in the real case) of `f`. The keyword arguments and their default values are: diff --git a/src/khatrirao.jl b/src/khatrirao.jl index b47ac9a9..62c695f0 100644 --- a/src/khatrirao.jl +++ b/src/khatrirao.jl @@ -12,7 +12,7 @@ KhatriRaoMap{T}(maps::As) where {T, As} = KhatriRaoMap{T, As}(maps) khatrirao(A::MapOrVecOrMat, B::MapOrVecOrMat) -> KhatriRaoMap Construct a lazy representation of the Khatri-Rao (or column-wise Kronecker) product of two -maps or arrays `A` and `B`. For the application to vectors, the tranpose action of `A` on +maps or arrays `A` and `B`. For the application to vectors, the transpose action of `A` on vectors needs to be defined. """ khatrirao(A::MapOrVecOrMat, B::MapOrVecOrMat) = diff --git a/src/trace.jl b/src/trace.jl index c08ad70d..cee4dc5f 100644 --- a/src/trace.jl +++ b/src/trace.jl @@ -33,7 +33,7 @@ function _tr(A::OOPFunctionMap{T}) where {T} end return s end -# specialiations +# specialisations _tr(A::AbstractVecOrMat) = tr(A) _tr(A::WrappedMap) = _tr(A.lmap) _tr(A::TransposeMap) = _tr(A.lmap)