Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Matrices need an xreplace() method. #245

Closed
isuruf opened this issue Aug 30, 2018 · 0 comments · Fixed by #282
Closed

Matrices need an xreplace() method. #245

isuruf opened this issue Aug 30, 2018 · 0 comments · Fixed by #282

Comments

@isuruf
Copy link
Member

isuruf commented Aug 30, 2018

From @moorepants on August 30, 2018 18:19

Getting this error when running sympy mechanics with symengine:

___________ sympy/physics/mechanics/tests/test_kane.py:test_one_dof ____________
Traceback (most recent call last):
  File "sympy/utilities/runtests.py", line 1277, in _timeout
    function()
  File "/home/travis/build/sympy/sympy/sympy/physics/mechanics/tests/test_kane.py", line 40, in test_one_dof
    KM.mass_matrix_full.LUsolve(KM.forcing_full)) == zeros(2, 1)
  File "sympy/physics/mechanics/kane.py", line 641, in forcing_full
    return -Matrix([f1.xreplace(self.kindiffdict()), self._f_d.xreplace(self.kindiffdict()), self._f_dnh.xreplace(self.kindiffdict())])
AttributeError: 'symengine.lib.symengine_wrapper.MutableDenseMatrix' object has no attribute 'xreplace'

Copied from original issue: symengine/symengine#1456

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant