Inspired by this ask.sagemath question <https://ask.sagemath.org/question/77986/with-symbolics-is-doing-unwanted-boolean-comparison/> : sage: V=vector(var("v", n=2)) sage: W=vector(var("w", n=2)) sage: V==W False
This is expected from a (Python) programmer’s point of view, but the mathematician could expect something like : sage: from _operator import eq sage: vector(map(eq, V, W)) (v0 == w0, v1 == w1) Similarly, sage: A=matrix(var("a", n=4), nrows=2) sage: B=matrix(var("b", n=4), nrows=2) sage: A==B False where sage: matrix(map(lambda u, v:map(eq, u, v), A, B)) [a0 == b0 a1 == b1] [a2 == b2 a3 == b3] could be expected. Are there (good or bad) reasons not to implement such vector/matrix equalities ? ​ -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/8c8c5ffb-efdd-45ab-afee-53cd58023c12n%40googlegroups.com.