We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f548497 commit c009bccCopy full SHA for c009bcc
src/spaces/vectorspaces.jl
@@ -214,17 +214,8 @@ function isunitspace(V::ElementarySpace)
214
return if isa(UnitStyle(I), SimpleUnit)
215
isisomorphic(V, unitspace(V))
216
else
217
- try
218
- isisomorphic(V, unitspace(V)) ||
219
- isisomorphic(V, leftunitspace(V)) ||
220
- isisomorphic(V, rightunitspace(V))
221
- catch e
222
- if isa(e, ArgumentError)
223
- return false
224
- else
225
- rethrow(e)
226
- end
227
+ (dim(V) == 0 || !all(isunit, sectors(V))) && return false
+ return true
228
end
229
230
0 commit comments