Issue opened here: https://github.com/sympy/sympy/issues/12938
Le mardi 11 juillet 2017 15:14:48 UTC+2, Aaron Meurer a écrit : > > Looks like a bug. Can you open an issue in the issue tracker? > > Aaron Meurer > > On Mon, Jul 10, 2017 at 9:11 PM, Antoine Falaize > <[email protected] <javascript:>> wrote: > > Hello sympy planet! > > Is there any reason for the following behavior? > > > > In sympy 1.0: > >>>> import sympy as sy > >>>> M1 = sy.Matrix.zeros(0, 0) > >>>> M2 = sy.Matrix.zeros(0, 1) > >>>> M3 = sy.Matrix.zeros(0, 2) > >>>> M4 = sy.Matrix.zeros(0, 3) > >>>> sy.Matrix.hstack(M1, M2, M3, M4).shape > > (0, 6) > > > > But in sympy 1.1: > >>>> M1 = sy.Matrix.zeros(0, 0) > >>>> M2 = sy.Matrix.zeros(0, 1) > >>>> M3 = sy.Matrix.zeros(0, 2) > >>>> M4 = sy.Matrix.zeros(0, 3) > >>>> sy.Matrix.hstack(M1, M2, M3, M4).shape > > (0, 3) > > > > whereas: > >>>> M1 = sy.Matrix.zeros(1, 0) > >>>> M2 = sy.Matrix.zeros(1, 1) > >>>> M3 = sy.Matrix.zeros(1, 2) > >>>> M4 = sy.Matrix.zeros(1, 3) > >>>> sy.Matrix.hstack(M1, M2, M3, M4).shape > > (1, 6) > > > > -- > > 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 [email protected] <javascript:>. > > To post to this group, send email to [email protected] > <javascript:>. > > Visit this group at https://groups.google.com/group/sympy. > > To view this discussion on the web visit > > > https://groups.google.com/d/msgid/sympy/19bfd65d-6ffa-4b91-bd6d-c6ea48ddf71d%40googlegroups.com. > > > > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/c7c35250-b9e1-4fd1-a9d5-a4ba1b47ebfd%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
