Skip to content

Commit f0e5ecd

Browse files
committed
Workaround nsolve with immutable x vars
1 parent 353718d commit f0e5ecd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

inst/vpasolve.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@
105105
'(e, x, x0, n) = _ins'
106106
'import mpmath'
107107
'mpmath.mp.dps = n'
108+
'if isinstance(x, MatrixBase):'
109+
' # TODO: find/file upstream issue'
110+
' x = x.as_mutable()'
108111
'r = nsolve(e, x, x0)'
109112
'return r' };
110113
r = pycall_sympy__ (cmd, sym(e), x, x0, n);

0 commit comments

Comments
 (0)