Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create chains in 0-dimensional spaces #60

Closed
eschnett opened this issue Apr 28, 2020 · 2 comments
Closed

Cannot create chains in 0-dimensional spaces #60

eschnett opened this issue Apr 28, 2020 · 2 comments

Comments

@eschnett
Copy link
Contributor

This fails:

julia> @basis 0
(⟨⟩, ⟨⟩)

julia> Chain{V,1}(v)
ERROR: DimensionMismatch("No precise constructor for SArray{Tuple{0},SubManifold{⟨⟩,0,0x0000000000000000},1,0} found. Length of input was 1.")
Stacktrace:
 [1] SArray{Tuple{0},SubManifold{⟨⟩,0,0x0000000000000000},1,0}(::Tuple{Tuple{Tuple{Tuple{SubManifold{⟨⟩,0,0x0000000000000000}}}}}) at /Users/eschnett/.julia/packages/StaticArrays/MB5hl/src/convert.jl:1
 [2] StaticArray at /Users/eschnett/.julia/packages/StaticArrays/MB5hl/src/convert.jl:4 [inlined] (repeats 4 times)
 [3] Chain{⟨⟩,1,𝕂,253} where 253 where 𝕂(::SubManifold{⟨⟩,0,0x0000000000000000}) at /Users/eschnett/.julia/packages/Grassmann/Of0BW/src/multivectors.jl:33
 [4] top-level scope at REPL[209]:1
 [5] eval(::Module, ::Any) at ./boot.jl:331
 [6] eval_user_input(::Any, ::REPL.REPLBackend) at /Users/eschnett/src/julia-1.4/usr/share/julia/stdlib/v1.4/REPL/src/REPL.jl:86
 [7] run_backend(::REPL.REPLBackend) at /Users/eschnett/.julia/packages/Revise/0meWR/src/Revise.jl:1075
 [8] top-level scope at none:0

This is of low priority to me.

@chakravala
Copy link
Owner

Zero dimensional generating spaces are not supported at this time, but they could possibly be supported in the future if it becomes truly necessary for some reason.

@chakravala
Copy link
Owner

@basis 0 works starting in v0.7.8 now, though I don't know why anyone would want that

chakravala added a commit that referenced this issue Dec 19, 2021
chakravala added a commit that referenced this issue Dec 19, 2021
chakravala added a commit to chakravala/Leibniz.jl that referenced this issue Dec 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants