On Fri, Nov 8, 2019 at 1:33 AM saad khalid <[email protected]> wrote: > > This functionality seems to be intended somehow? At least, it is made > reference to in the documentation: > http://doc.sagemath.org/html/en/reference/matrices/sage/matrix/matrix2.html > Look at the part after: > "A matrix that is not diagonalizable over the rationals, as evidenced by its > Jordan form."
the point is that it the current design does not follow the principle of least surprise, and all the other *.is_... methods return True/False, whereas only this one throws, instead of returning False. > > > -Saad > > On Thursday, November 7, 2019 at 4:38:13 AM UTC-5, Dima Pasechnik wrote: >> >> On Thu, Nov 7, 2019 at 9:15 AM Kwankyu <[email protected]> wrote: >> > >> > Hi, >> > >> > This >> > >> > m = matrix(QQ, 3, [1, 1, 1, 0, 3, 3, -2, 1, 2]) >> > m.is_diagonalizable() >> > >> > raises an error rather than giving False. The error message gives an >> > explanation why the matrix is > not diagonalizable. But I think the >> > expected result for asking diagonalizability should be either True or >> > False, for legitimate inputs. >> >> I agree. It seems that is_diagonalizable() is the only method among >> is_*() for matrices >> that has this strange behavior (I checked several of them, but not all). >> >> CC'ing to the original author... >> >> Dima >> >> > What do you think? >> > >> > >> > >> > >> > -- >> > You received this message because you are subscribed to the Google Groups >> > "sage-support" group. >> > To unsubscribe from this group and stop receiving emails from it, send an >> > email to [email protected]. >> > To view this discussion on the web visit >> > https://groups.google.com/d/msgid/sage-support/4c3a3e63-14d7-4e49-aadb-480b6ff46a64%40googlegroups.com. > > -- > You received this message because you are subscribed to the Google Groups > "sage-support" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sage-support/8efe0856-7376-447f-908e-6e9677d475ea%40googlegroups.com. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/CAAWYfq2hvPEvY8y-tobHz%3DgiQwXDx3ow5-%2BUGjUCtt1SmJWWkw%40mail.gmail.com.
