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

ERROR: LoadError: MethodError: no method matching parityrighthodge(::Int64, ::UInt64) #96

Open
alok opened this issue Mar 7, 2022 · 0 comments

Comments

@alok
Copy link

alok commented Mar 7, 2022

using Grassmann
function gram_schmidt(vectors)
    # A = accumulate(∧, vectors; init = one(eltype(vectors)))
    A = Chain{3}[vectors[1]]
    for i in 2:length(vectors)
        push!(A, A[i - 1]  vectors[i])
    end
    println(A)
    c = Chain{3}[vectors[1]]
    for i in 2:length(vectors)
        rev = reverse(A[i - 1])
        println("rev: $rev, $(typeof(rev))")
        println("ai: $(A[i]), $(typeof(A[i]))")
        new_term = rev * A[i]
        # push!(c, new_term)
    end
    c
end

function main()
    n = 3
    mvs = [rand(MultiVector{n})(1) for _ in 1:n]
    ortho = gram_schmidt(mvs)
    println(ortho)
end

main()

gives the following error:

ERROR: LoadError: MethodError: no method matching parityrighthodge(::Int64, ::UInt64)
Closest candidates are:
  parityrighthodge(::SubManifold, ::Any) at ~/.julia/packages/DirectSum/44LUF/src/operations.jl:285
  parityrighthodge(::SubManifold, ::Any, ::Any) at ~/.julia/packages/DirectSum/44LUF/src/operations.jl:285
  parityrighthodge(::DiagonalForm, ::Any) at ~/.julia/packages/DirectSum/44LUF/src/operations.jl:285
  ...
Stacktrace:
  [1] #s215#111
    @ ~/.julia/packages/Grassmann/xDWIy/src/products.jl:536 [inlined]
  [2] var"#s215#111"(V::Any, G::Any, T::Any, ::Any, b::Any)
    @ Grassmann ./none:0
  [3] (::Core.GeneratedFunctionStub)(::Any, ::Vararg{Any})
    @ Core ./boot.jl:580
  [4] macro expansion
    @ ~/.julia/packages/Grassmann/xDWIy/src/products.jl:475 [inlined]
  [5] *(a::Chain{3, 2, Float64, 3}, b::Chain{3, 3, Float64, 1})
    @ Grassmann ~/.julia/packages/Grassmann/xDWIy/src/products.jl:475
  [6] gram_schmidt(vectors::Vector{Chain{3, 1, Float64, 3}})
    @ Main ~/dev/seeugx.jl:15
  [7] main()
    @ Main ~/dev/seeugx.jl:24
  [8] top-level scope
    @ ~/dev/seeugx.jl:28
  [9] include(fname::String)
    @ Base.MainInclude ./client.jl:451
 [10] top-level scope
    @ REPL[105]:1
in expression starting at ~/dev/seeugx.jl:28

I have no idea how it got to parity issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant