fuse.utils.sympy_to_numpy

fuse.utils.sympy_to_numpy(array, symbols, values)

TODO: rename this function Evaluate symbols at values, then convert to numpy if all have been replaced

Param:

array: sympy array

Param:

symbols: array of symbols contained in the sympy exprs

Param:

values: array of values to replace the symbols with.

Due to how sympy handles arrays, we need to squeeze if resulting array is greater than 1 dimension to remove extra dimensions