Giter Club home page Giter Club logo

Comments (6)

chakravala avatar chakravala commented on June 26, 2024

No, you are mistaken. That is not a grade selection syntax. The grade selection syntax is handled with the grade function:

julia> grade(v1+v2,0)
šŸŽ

julia> grade(v1+v2,Val(0))
šŸŽ

The scalar part of an element is obtained with the scalar function:

julia> scalar(v1+v2)
šŸŽ

Note that you may have to use Grassmann v0.8 or later to reproduce these exact results.

from grassmann.jl.

ajahraus avatar ajahraus commented on June 26, 2024

That still doesn't work for me, I get a method error

MethodError: no method matching grade(::Grassmann.MultiVector{āŸØ1,1,1āŸ©, Int64, 8})

I'm importing using Grassmann, LinearAlgebra, AbstractTensors, Leibniz

from grassmann.jl.

ajahraus avatar ajahraus commented on June 26, 2024

Also, your documentation reads:

Taking a projection into a specific grade of a MultiVector is usually written $\langle A\rangle_n$
ā€‹
and can be done using the soft brackets, like so

julia> A(0)
1v

julia> A(1)
2vā‚ + 0vā‚‚ + 0vā‚ƒ

julia> A(2)
3vā‚ā‚‚ + 0vā‚ā‚ƒ + 0vā‚‚ā‚ƒ

Which is the only example of selecting elements of a grade I can find, and it fails if the type happens to be a Chain rather than a MultiVector

from grassmann.jl.

chakravala avatar chakravala commented on June 26, 2024

That still doesn't work for me, I get a method error
MethodError: no method matching grade(::Grassmann.MultiVector{āŸØ1,1,1āŸ©, Int64, 8})

Are you using Grassmann v0.8? That's the only currently supported version of Grassmann older versions are not supported.

Also, your documentation reads:
...
and can be done using the soft brackets, like so

No, converting \langle and \rangle sandwhich into a parenthesis prefix argument form is grammatically not implied anywhere.

from grassmann.jl.

ajahraus avatar ajahraus commented on June 26, 2024

The line which shows this syntax in your documentation is here.

from grassmann.jl.

chakravala avatar chakravala commented on June 26, 2024

I see, this is why I don't want to document any features that are works in progress. This package is not v1.0 yet, and is basically my scratch pad which is ever evolving. The syntax for grade selection is not yet firmly settled on a standard and is in flux.

from grassmann.jl.

Related Issues (20)

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.