Skip to content

Commit dd25f79

Browse files
committed
fixed #11 bug with One(V)
1 parent 252ddc3 commit dd25f79

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

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.8.17"
4+
version = "0.8.18"
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
@@ -567,7 +567,7 @@ end
567567
@pure Zero(V::Type{<:TensorBundle}) = Zero(V())
568568
@pure Zero(V::Int) = Zero(submanifold(V))
569569
@pure Zero(V::Submanifold{M}) where M = Zero{isbasis(V) ? M : V}()
570-
@pure One(V::T) where T<:Submanifold = Submanifold{Manifold(V)}()
570+
@pure One(V::Submanifold{M}) where M = Submanifold{isbasis(V) ? M : V}()
571571
@pure One(V::T) where T<:TensorBundle = Submanifold{V}()
572572
@pure One(V::Int) = Submanifold{V,0}()
573573
@pure One(b::Type{Submanifold{V}}) where V = Submanifold{V}()

0 commit comments

Comments
 (0)