Skip to content

Commit 991b0e0

Browse files
added comments in halfshuffle to highlitght issues
1 parent ec89c82 commit 991b0e0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

PathSignatures.m2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -831,13 +831,16 @@ halfshuffleHelper(NCRingElement, List) := (f,w) -> (
831831
)
832832
halfshuffle = method();
833833
halfshuffle (NCRingElement, NCRingElement) := (f,g) -> (
834+
--Exlclude one input is 0
835+
--fix behaviour for constants
834836
if(ring f === ring g) then (
835837
return(linExt(i->halfshuffleHelper(f,i),g));)
836838
else (
837839
error "Can not apply halfshuffle to polynomials from different rings";
838840
)
839841
)
840842

843+
--The notation in the reference is the other way around but for some reason changing this to >> breaks the code
841844
NCRingElement << NCRingElement := (f,g) -> (
842845
halfshuffle(f,g)
843846
)

0 commit comments

Comments
 (0)