Skip to content

Commit 4be933c

Browse files
authored
Merge pull request #268 from jgray-19/tpse_fix
Fix a typo in the GTPSA module
2 parents 76f75d4 + 96c2af2 commit 4be933c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/madl_gtpsa.mad

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,14 +477,14 @@ function MR.get_mono (x, i, r) -- idx -> mono
477477
assert(is_integer(i), "invalid argument #2 (index expected)")
478478
local m = r or monomial(x.d.nn)
479479
assert(is_monomial(m), "invalid argument #2 (table or monomial expected)")
480-
return _C.mad_tpsa_mono(t, m.n, m._dat, i-1) -- set m, return order
480+
return _C.mad_tpsa_mono(x, m.n, m._dat, i-1) -- set m, return order
481481
end
482482

483483
function MC.get_mono (x, i, r) -- idx -> mono
484484
assert(is_integer(i), "invalid argument #2 (index expected)")
485485
local m = r or monomial(x.d.nn)
486486
assert(is_monomial(m), "invalid argument #2 (table or monomial expected)")
487-
return _C.mad_ctpsa_mono(t, m.n, m._dat, i-1) -- set m, return order
487+
return _C.mad_ctpsa_mono(x, m.n, m._dat, i-1) -- set m, return order
488488
end
489489

490490
function MR.cycle (x, i, m_) -- loop over indexes for non-zero value, (i=0 means end)

0 commit comments

Comments
 (0)