chakravala / Grassmann.jl

⟨Grassmann-Clifford-Hodge⟩ multilinear differential geometric algebra
https://grassmann.crucialflow.com
GNU Affero General Public License v3.0
470 stars 38 forks source link

Implement unary wedge #69

Closed eschnett closed 4 years ago

eschnett commented 4 years ago

It is sometimes convenient to call a multiplication operator with a single argument, as in \wedge(xs...) where xs is a collection of chains. For example, * returns its argument when called with a single argument. It would be convenient if \wedge did the same; this would avoid code such as

            if length(xs) == 1
                vol = abs(xs[1])
            else
                vol = abs(∧(xs...))
            end