]> gitweb.factorcode.org Git - factor.git/commitdiff
koszul: use 3tri in bigraded-triple
authorEduardo Cavazos <dharmatech@finkelstein.stackeffects.info>
Fri, 4 Jul 2008 16:34:47 +0000 (11:34 -0500)
committerEduardo Cavazos <dharmatech@finkelstein.stackeffects.info>
Fri, 4 Jul 2008 16:34:47 +0000 (11:34 -0500)
extra/koszul/koszul.factor

index a8edf6917f411c5aee90cf53074d9e00c04265d2..188cfaa1cfe308a73a4a3daec954051456f02d95 100755 (executable)
@@ -265,9 +265,10 @@ DEFER: (d)
 
 : bigraded-triple ( u-deg z-deg bigraded-basis -- triple )
     #! d: C(u,z) ---> C(u+2,z-1)
-    [ >r >r 2 - r> 1 + r> ?nth ?nth ] 3keep
-    [ ?nth ?nth ] 3keep
-    >r >r 2 + r> 1 - r> ?nth ?nth
+    [ [ 2 - ] [ 1 + ] [ ] tri* ?nth ?nth ] 
+    [ ?nth ?nth ] 
+    [ [ 2 + ] [ 1 - ] [ ] tri* ?nth ?nth ]
+    3tri
     3array ;
 
 : bigraded-triples ( grid -- triples )