Skip to content

Commit bec58c3

Browse files
committed
fixed bug in tensorExp, small changes to universal variety example
1 parent a890c38 commit bec58c3

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

PathSignatures.m2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ Node
271271
Text
272272
This agrees with the result in Table 2 of @HREF("#ref1","[1]")@.
273273
Text
274-
As $\phi$ is an isomorphism of graded vector spaces, we see that the variety $\mc U_{d,k}$ is parametrized by the vector of degree $k$ monomials in Lyndon words after a linear coordinate change on $(K^d)^{\otimes k}$. We can use this to simplify the computation of the universal variety.
274+
As $\phi$ is an isomorphism of graded vector spaces, we see that the variety $\mathcal U_{d,k}$ is parametrized by the vector of degree $k$ monomials in Lyndon words after a linear coordinate change on $(K^d)^{\otimes k}$. We can use this to simplify the computation of the universal variety.
275275
Example
276276
mons = flatten entries basis(3,Q);
277277
S = QQ[z_1..z_(length mons)];
@@ -304,7 +304,7 @@ Node
304304
M = sub(matrix apply(lpols, i -> (flatten entries (coefficients(i, Monomials => mons))#1) ),QQ);
305305
M^(-1)
306306
Text
307-
This is the matrix from Example 21 in @HREF("#ref2","[2]")@ up to scalars.
307+
This is the matrix from Example 21 in @HREF("#ref2","[2]")@. Note that while we obtained the coordinate change by inverting the map that sends a word to its coefficient in the exponential (which is a linear combination of Lyndon word monomials), in @HREF("#ref2","[2]")@ the coordinate change is obtained directly without computing the exponential. Both strategies yield the same result by Lemma 18 in loc. cit..
308308
-- Text
309309
-- Let us compute a path variety after toric coordinate change.
310310
-- Example

PathSignatures/algebra.m2

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -279,21 +279,10 @@ lieBasis(Array, NCPolynomialRing) := (w,R) -> (
279279

280280
lieBasis(List, NCPolynomialRing) := (l, R) -> lieBasis (new Array from l, R);
281281

282-
-- auxiliary functions for tensorExp
283-
expTermCoef = (t) -> (
284-
m := max t;
285-
counts := new MutableList from (m : 0);
286-
for i from 0 to length(t)-1 do(
287-
if(t#i > 0) then counts#(t#i - 1) = counts#(t#i - 1) + 1;
288-
);
289-
counts = toList(counts);
290-
facs := apply(counts, i -> i!);
291-
binom := product(facs);
292-
return(1/binom);
293-
);
282+
294283

295284
expTerm = (tl,l) -> (
296-
expTermCoef(l)*product(l,i->(tl_i))
285+
return(1/(length(l))!)*product(l,i->(tl_i))
297286
)
298287

299288
-- Given a tensor p with constant term 0, tensorExp(p,k) returns the k-th level component of exp(p)

0 commit comments

Comments
 (0)