Skip to content

Commit

Permalink
Add naive implementation tensoradd with BraidingTensor
Browse files Browse the repository at this point in the history
  • Loading branch information
lkdvos committed Nov 27, 2023
1 parent 4476595 commit 0b8ee10
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/tensors/braidingtensor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,15 @@ end
# ---------------
# TODO

# TensorOperations
# ----------------
# TODO: implement specialized methods
function TO.tensoradd!(C::AbstractTensorMap{S,N₁,N₂}, pC::Index2Tuple{N₁,N₂},
A::BraidingTensor{S}, conjA::Symbol, α::Number, β::Number,
backend::Backend...) where {S,N₁,N₂}
return TO.tensoradd!(C, pC, copy(A), conjA, α, β, backend...)
end

# Planar operations
# -----------------
function planaradd!(C::AbstractTensorMap{S,N₁,N₂},
Expand Down

0 comments on commit 0b8ee10

Please sign in to comment.