simit-lang / simit

A language for computing on sparse systems
http://simit-lang.org
Other
452 stars 52 forks source link

Error assembling diagonal edge-edge matrix #83

Closed fredrikbk closed 7 years ago

fredrikbk commented 7 years ago

The following fails for @Lugatod:

func foo(q : Quad, p : (Point*4)) -> A : matrix[quads,quads](float)
end

A = map foo to quads reduce +';
Lugatod commented 7 years ago

It will be an easy way to make Identity matrices :

func eye(q:Quad)->I:matrix[quads,quads](float)
    I(q,q)=1.0;
end
I = map eye to quads reduce +;