Comments (4)
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.
Ah, I see! Is there some documentation on the difference between the D"-++" and the S"-++" constructor?
from directsum.jl.
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.
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)
- Naming conventions in DirectSum for v0.3+
- Ambiguous Base.:(==) in the doc of ℝ HOT 1
- Support arbitrary metrics HOT 4
- Trouble creating an array of unit vectors when one of them has negative scalar coefficient HOT 2
- Submanifold index arrays should be typed HOT 2
- Trouble with @basis macro and D constructor HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from directsum.jl.