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 b5d14a7 commit 11a7a91Copy full SHA for 11a7a91
src/spaces/cartesianspace.jl
@@ -11,6 +11,9 @@ vector space that is implicitly assumed in most of matrix algebra.
11
"""
12
struct CartesianSpace <: ElementarySpace
13
d::Int
14
+
15
+ # required to avoid CartesianSpace(::Any) default constructor:
16
+ CartesianSpace(d::Int) = new(d)
17
end
18
19
CartesianSpace(d::Integer = 0; dual = false) = CartesianSpace(Int(d))
0 commit comments