for matrix in matrices:
# TODO : SymPy 0.7.4 does not have Matrix.free_symbols so we
# manually compute them instead of calling:
# required_args |= matrix.free_symbols
required_args |= set().union(*[i.free_symbols for i in matrix])
required_args |= find_dynamicsymbols(matrix)
can be very slow.
If you symbolically solve the equations of motion for a large system and then pass those equations to the matrix generator it can sit on these lines for extremely long times.
These lines:
https://github.com/pydy/pydy/blob/master/pydy/codegen/matrix_generator.py#L53
can be very slow.
If you symbolically solve the equations of motion for a large system and then pass those equations to the matrix generator it can sit on these lines for extremely long times.
Hit this with this model: https://github.com/csu-hmc/gait2d