You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it would be very useful and powerful to include also the support for the computation with symbolic $n$-dimensional arrays based on sympy (see sympy.tensor.array module). To give an explicit example, consider the following code:
This is working and it returns the correct result but the output array is a numpy.ndarray with dtype=object which is unnatural and quite inefficient for symbolic computation. It would be nice to have an implementation of the contract function able to operate on sympy.Array objects directly.
Please let me know if this is something planned for the opt_einsum project in the near-term future. Otherwise, it would be great if you could drop here any reference to other possible implementation attempts of that kind of symbolic version of the optimized tensors contraction.
The text was updated successfully, but these errors were encountered:
Ok cool, thank you @jcmgray.
I can try to draft an implementation myself as soon as I find some time. Let me know if you have any specific suggestion in order to tackle the problem in the right direction from the very beginning.
I think it would be very useful and powerful to include also the support for the computation with symbolic$n$ -dimensional arrays based on
sympy
(see sympy.tensor.array module). To give an explicit example, consider the following code:This is working and it returns the correct result but the
output
array is anumpy.ndarray
withdtype=object
which is unnatural and quite inefficient for symbolic computation. It would be nice to have an implementation of thecontract
function able to operate onsympy.Array
objects directly.Please let me know if this is something planned for the
opt_einsum
project in the near-term future. Otherwise, it would be great if you could drop here any reference to other possible implementation attempts of that kind of symbolic version of the optimized tensors contraction.The text was updated successfully, but these errors were encountered: