It sounds like whatever the Aesara version of dot product is just needs to be added to the Aesara printer so that it knows how to handle DotProduct.
Aaron Meurer On Fri, Oct 21, 2022 at 11:59 AM Peter Bleackley <peter.bleack...@playfultechnology.co.uk> wrote: > > I have an expression that involves a dot product, and I want to generate > aesara code from it. Unfortunately, aesara_function does not seem to > recognise DotProduct objects (I get a KeyError expection from the mapping > dictionary). I have tried using MatMul instead, but elsewhere in the > expression I need to subtract a scalar from the dot product, and sympy will > not subract a scalar from a matrix expression. > > Can anybody suggest what I should do about this? > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sympy+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sympy/12f74a20-d8ed-47c8-9d68-38339ff36922n%40googlegroups.com. -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAKgW%3D6J4Js9AZ8s3CMLz0uFcWeg%2BOjaWRbxcLhMY3ZyPorFp_Q%40mail.gmail.com.