Skip to content

Commit 5861432

Browse files
authored
Braidingtensor planarcontract! fixes (#418)
* update BraidingTensor `planarcontract!` * remove obsolete code * add `promote_storagetype` edge case * add braidingtensor.jl tests * extend braidingtensor tests * update planarcontract implementation * fix small typos * one more bugfix * try once more * some more tests * Correct braiding behavior * remove unnecessary overloads * add_permute does not accept allocators
1 parent 96cdad8 commit 5861432

5 files changed

Lines changed: 316 additions & 493 deletions

File tree

src/tensors/abstracttensor.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ Determine an appropriate storage type for the combination of tensors `A` and `B`
130130
Optionally, a scalartype `T` for the destination can be supplied that might differ from the inputs.
131131
""" promote_storagetype
132132

133+
@inline promote_storagetype(A::AbstractTensorMap) = storagetype(A)
133134
@inline promote_storagetype(A::AbstractTensorMap, B::AbstractTensorMap, Cs::AbstractTensorMap...) =
134135
promote_storagetype(storagetype(A), storagetype(B), map(storagetype, Cs)...)
135136
@inline promote_storagetype(::Type{T}, A::AbstractTensorMap, B::AbstractTensorMap, Cs::AbstractTensorMap...) where {T <: Number} =

0 commit comments

Comments
 (0)