Skip to content

Commit

Permalink
Add oplus as alternative for ⊕
Browse files Browse the repository at this point in the history
  • Loading branch information
lkdvos committed Mar 30, 2024
1 parent b8aec58 commit 4ae542f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/TensorKit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export TruncationScheme
export SpaceMismatch, SectorMismatch, IndexError # error types

# general vector space methods
export space, field, dual, dim, dims, fuse, flip, isdual, insertunit
export space, field, dual, dim, dims, fuse, flip, isdual, insertunit, oplus

# partial order for vector spaces
export infimum, supremum, isisomorphic, ismonomorphic, isepimorphic
Expand Down
2 changes: 2 additions & 0 deletions src/spaces/vectorspaces.jl
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ Base.oneunit(V::ElementarySpace) = oneunit(typeof(V))

"""
⊕(V₁::S, V₂::S, V₃::S...) where {S<:ElementarySpace} -> S
oplus(V₁::S, V₂::S, V₃::S...) where {S<:ElementarySpace} -> S
Return the corresponding vector space of type `S` that represents the direct sum sum of the
spaces `V₁`, `V₂`, ... Note that all the individual spaces should have the same value for
Expand All @@ -131,6 +132,7 @@ spaces `V₁`, `V₂`, ... Note that all the individual spaces should have the s
function end
(V₁::VectorSpace, V₂::VectorSpace) = (promote(V₁, V₂)...)
(V::Vararg{VectorSpace}) = foldl(, V)
const oplus =

"""
⊗(V₁::S, V₂::S, V₃::S...) where {S<:ElementarySpace} -> S
Expand Down

0 comments on commit 4ae542f

Please sign in to comment.