I have the following issue:
I want to use autowrap to generate a compiled version of a sympy matrix, with cells containing sympy expressions. Depending on the specificat
Passing the argument as an array seems to work OK
x = sympy.MatrixSymbol('x', 520, 1) exp = 0 for i in range(x.shape[0]): exp += x[i] cyt = autowrap(exp, backend='cython') arr = np.random.randn(520, 1) cyt(arr) Out[48]: -42.59735861021934 arr.sum() Out[49]: -42.597358610219345