Skip to content

Commit b537e2b

Browse files
committed
small fixes
1 parent 7ad956b commit b537e2b

2 files changed

Lines changed: 23 additions & 25 deletions

File tree

docs/src/man/tensors.md

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -907,18 +907,18 @@ in its image or coimage.
907907
`QRpos()`, `QL()`, `QLpos()`, `SVD()`, `SDD()`, `Polar()`. `QR()` uses the underlying
908908
`qr` decomposition from `LinearAlgebra`, while `QRpos()` (the default) adds a correction
909909
to that to make sure that the diagonal elements of `R` are positive.
910-
Both result in upper triangular `R`, which are square when `t` is full rank and
911-
surjective otherwise. `QL()` and `QLpos()` similarly result
912-
in a lower triangular matrices in `R`, but only work if all block matrices are
913-
tall, i.e. `blockdim(codomain(t), c) >= blockdim(domain(t), c)` for all `c ∈
914-
blocksectors(t)`.
915-
916-
One can also use `alg = SVD()` or `alg = SDD()`, with extra
917-
keywords to control the absolute (`atol`) or relative (`rtol`) tolerance. We then set
918-
`Q=U` and `R=Σ*Vʰ` from the corresponding singular value decomposition, where only
919-
these singular values `σ >= max(atol, norm(t)*rtol)` (and corresponding singular vectors
920-
in `U`) are kept. More finegrained control on the chosen singular values can be
921-
obtained with `tsvd` and its `trunc` keyword.
910+
Both result in upper triangular `R`, which are square when `codomain(t) ≾ domain(t)`
911+
and wide otherwise. `QL()` and `QLpos()` similarly result in a lower triangular
912+
matrices in `R`, but only work in the former case, i.e. `codomain(t) ≾ domain(t)`,
913+
which amounts to `blockdim(codomain(t), c) >= blockdim(domain(t), c)` for all
914+
`c ∈ blocksectors(t)`.
915+
916+
One can also use `alg = SVD()` or `alg = SDD()`, with extra keywords to control the
917+
absolute (`atol`) or relative (`rtol`) tolerance. We then set `Q=U` and `R=Σ*Vʰ` from
918+
the corresponding singular value decomposition, where only these singular values
919+
`σ >= max(atol, norm(t)*rtol)` (and corresponding singular vectors in `U`) are kept.
920+
More finegrained control on the chosen singular values can be obtained with `tsvd` and
921+
its `trunc` keyword.
922922

923923
Finally, `Polar()` sets `Q=U*Vʰ` and `R = (Vʰ)'*Σ*Vʰ`, such that `R` is positive
924924
definite; in this case `SDD()` is used to actually compute the singular value
@@ -934,16 +934,17 @@ in its image or coimage.
934934
`LQpos()`, `RQ()`, `RQpos()`, `SVD()`, `SDD()`, `Polar()`. `LQ()` uses the underlying
935935
`qr` decomposition from `LinearAlgebra` on the transposed data, and leads to lower
936936
triangular matrices in `L`; `LQpos()` makes sure the diagonal elements are
937-
positive. `RQ()` and `RQpos()` similarly result in upper triangular matrices in
938-
`L`, but only works for wide matrices, i.e. `blockdim(codomain(t), c) <=
939-
blockdim(domain(t), c)` for all `c ∈ blocksectors(t)`.
940-
941-
One can also use `alg = SVD()` or `alg = SDD()`, with extra
942-
keywords to control the absolute (`atol`) or relative (`rtol`) tolerance. We then set
943-
`L=U*Σ` and `Q=Vʰ` from the corresponding singular value decomposition, where only these
944-
singular values `σ >= max(atol, norm(t)*rtol)` (and corresponding singular vectors in
945-
``) are kept. More finegrained control on the chosen singular values can be obtained
946-
with `tsvd` and its `trunc` keyword.
937+
positive. The matrices `L` are square when `codomain(t) ≿ domain(t)` and tall otherwise.
938+
Similarly, `RQ()` and `RQpos()` result in upper triangular matrices in `L`, but only
939+
works if `codomain(t) ≿ domain(t)`, i.e. when
940+
`blockdim(codomain(t), c) <= blockdim(domain(t), c)` for all `c ∈ blocksectors(t)`.
941+
942+
One can also use `alg = SVD()` or `alg = SDD()`, with extra keywords to control the
943+
absolute (`atol`) or relative (`rtol`) tolerance. We then set `L=U*Σ` and `Q=Vʰ` from
944+
the corresponding singular value decomposition, where only these singular values
945+
`σ >= max(atol, norm(t)*rtol)` (and corresponding singular vectors in ``) are kept.
946+
More finegrained control on the chosen singular values can be obtained with `tsvd` and
947+
its `trunc` keyword.
947948

948949
Finally, `Polar()` sets `L = U*Σ*U'` and `Q=U*Vʰ`, such that `L` is positive definite;
949950
in this case `SDD()` is used to actually compute the singular value decomposition and no

src/sectors/anyons.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ function Rsymbol(a::FibonacciAnyon, b::FibonacciAnyon, c::FibonacciAnyon)
101101
end
102102
end
103103

104-
Base.show(io::IO, ::Type{FibonacciAnyon}) = print(io, "FibonacciAnyon")
105104
function Base.show(io::IO, a::FibonacciAnyon)
106105
s = isone(a) ? ":I" : ""
107106
return get(io, :typeinfo, nothing) === FibonacciAnyon ?
@@ -240,8 +239,6 @@ function Rsymbol(a::IsingAnyon, b::IsingAnyon, c::IsingAnyon)
240239
return complex(1.0)
241240
end
242241

243-
Base.show(io::IO, ::Type{IsingAnyon}) = print(io, "IsingAnyon")
244-
245242
function Base.show(io::IO, a::IsingAnyon)
246243
if get(io, :typeinfo, nothing) === IsingAnyon
247244
return print(io, ":$(a.s)")

0 commit comments

Comments
 (0)