diff(x.A.y,A) should be transpose(x).transpose(y)



diff(x.A.y,A) should be transpose(x).transpose(y)
But
diff(x.A.y,A)
=> x.y