Skip to content

Commit

Permalink
corrected complex coefficient case
Browse files Browse the repository at this point in the history
  • Loading branch information
chakravala committed Apr 10, 2024
1 parent 0a5e007 commit 6c4ce27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "DirectSum"
uuid = "22fd7b30-a8c0-5bf2-aabe-97783860d07c"
authors = ["Michael Reed"]
version = "0.8.9"
version = "0.8.10"

[deps]
ComputedFieldTypes = "459fdd68-db75-56b8-8c15-d717a790f88e"
Expand Down
4 changes: 2 additions & 2 deletions src/operations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -350,13 +350,13 @@ end
p = paritymetric(b)
typeof(V)<:Signature ? (p ? -b : b ) : Single{V}(p,b)
end
metric(b::Single) = conj(value(b))*metric(basis(b))
metric(b::Single) = value(b)*metric(basis(b))
@pure function antimetric(b::Submanifold{V,G,B}) where {V,G,B}
isdyadic(V) && throw(error("Complement for mixed tensors is undefined"))
p = parityanti(b)
typeof(V)<:Signature ? (p ? -b : b ) : Single{V}(p,b)
end
antimetric(b::Single) = conj(value(b))*antimetric(basis(b))
antimetric(b::Single) = value(b)*antimetric(basis(b))
end

# other
Expand Down

0 comments on commit 6c4ce27

Please sign in to comment.