Skip to content

Commit

Permalink
changed TensorAlgebra dispatch of ⊙,⊠
Browse files Browse the repository at this point in the history
  • Loading branch information
chakravala committed Jun 15, 2019
1 parent cacbf40 commit b283577
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/algebra.jl
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,9 @@ end

export ,

(x...) = (K=length(x); sum([prod(x[k]) for k collect(permutations(1:K))])/factorial(K))
(x::TensorAlgebra...) = (K=length(x); sum([prod(x[k]) for k collect(permutations(1:K))])/factorial(K))

function (x...)
function (x::TensorAlgebra...)
K,V,out = length(x),(vectorspace.(x)...),prod(x)
P,F = collect(permutations(1:K)),factorial(K)
for n 2:F
Expand Down

0 comments on commit b283577

Please sign in to comment.