Giter Site home page Giter Site logo

Comments (4)

chakravala avatar chakravala commented on May 27, 2024

You are mistaken, the geometric product works for all the algebras

julia> using Grassmann

julia> @basis S"-+"
(⟨-+⟩, v, v₁, v₂, v₁₂)

julia> v1*v2
v₁₂

julia> @basis S"-++"
(⟨-++⟩, v, v₁, v₂, v₃, v₁₂, v₁₃, v₂₃, v₁₂₃)

julia> v1*v2
v₁₂

that version of the constructor relies on V"..." which defers to either D"..." or S"..." and for the input value of -+ and -++ the V"..." constructor selects D"..."

Look closely at the error you posted ⟨-,++⟩ is the vector space, which is what you get with

julia> D"-++"
⟨-,++⟩

julia> S"-++"
⟨-++⟩

This is merely an issue with the default generic constructor of DirectSum and has nothing to do with Grassmann package. In an ambiguity, a specific constructor must be used.

from directsum.jl.

karlwessel avatar karlwessel commented on May 27, 2024

Ah, I see! Is there some documentation on the difference between the D"-++" and the S"-++" constructor?

from directsum.jl.

chakravala avatar chakravala commented on May 27, 2024

No, it's not documented yet and there are going to be more variations coming into existence.

D is for DiagonalForm and S for Signature type.. however more types are coming

Therefore, it's still an open problem. However, the constructor issue is not my primary concern right now, although I have been aware of it already. This package is still going to change a lot before I take another look at the generic constructor issue.

from directsum.jl.

karlwessel avatar karlwessel commented on May 27, 2024

Alright, knowing that I just have to explicitly use S"-+" instead of V"-+" works for me.

Thanks for the quick clarification!

from directsum.jl.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.