Skip to content

Commit 9bdd092

Browse files
committed
add oneunit for type of space
1 parent 09cee6d commit 9bdd092

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)