Skip to content

Commit 7dcf6bd

Browse files
committed
fixed #9 for D" constructor
1 parent a82c58c commit 7dcf6bd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "DirectSum"
22
uuid = "22fd7b30-a8c0-5bf2-aabe-97783860d07c"
33
authors = ["Michael Reed"]
4-
version = "0.5.9"
4+
version = "0.5.10"
55

66
[deps]
77
ComputedFieldTypes = "459fdd68-db75-56b8-8c15-d717a790f88e"

src/DirectSum.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ DiagonalForm(s::String) = DiagonalForm(Meta.parse(s).args)
118118
@pure diagonalform(V::DiagonalForm{N,M,S} where N) where {M,S} = isdual(V) ? SUB(diagonalform_cache[S]) : diagonalform_cache[S]
119119
const diagonalform_cache = SVector[]
120120
function DiagonalForm{N,M}(b::SVector{N}) where {N,M}
121-
a = isdual(M) ? SUB(b) : b
121+
a = dyadmode(M)>0 ? SUB(b) : b
122122
if a diagonalform_cache
123123
DiagonalForm{N,M,findfirst(x->x==a,diagonalform_cache)}()
124124
else

0 commit comments

Comments
 (0)