Skip to content

Commit c4618ae

Browse files
borisdevoslkdvos
authored andcommitted
add oneunit for type of space
1 parent 0b5a954 commit c4618ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/spaces/vectorspaces.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ that this is different from `one(V::S)`, which returns the empty product space
129129
"""
130130
unitspace(V::ElementarySpace) = unitspace(typeof(V))
131131
Base.oneunit(V::ElementarySpace) = unitspace(V)
132-
#TODO: add for type
132+
Base.oneunit(::Type{V}) where {V<:ElementarySpace} = unitspace(V)
133133

134134
"""
135135
zerospace(V::S) where {S<:ElementarySpace} -> S

0 commit comments

Comments
 (0)