Ticket #10944: trac_10944-similar-matrices-minor-fixes.patch

File trac_10944-similar-matrices-minor-fixes.patch, 1.0 KB (added by rbeezer, 8 years ago)
  • sage/matrix/matrix2.pyx

    # HG changeset patch
    # User Rob Beezer <beezer@ups.edu>
    # Date 1308589500 25200
    # Node ID cb531ede19791fccfb65e3b92f0f2231d6099bbf
    # Parent  6ca08864b80c1e04599ba23ba295bfcf6a61f19b
    10944: minor fixes to similar matrices check
    
    diff -r 6ca08864b80c -r cb531ede1979 sage/matrix/matrix2.pyx
    a b  
    82098209        if transformation not in [True, False]:
    82108210            raise ValueError('transformation keyword must be True or False, not {0}'.format(transformation))
    82118211        # easy false situations
    8212         if not self.is_square() or not other.is_square:
     8212        if not self.is_square() or not other.is_square():
    82138213            if transformation:
    82148214                return (False, None)
    82158215            else:
    82168216                return False
    8217         if self.nrows() != self.nrows():
     8217        if self.nrows() != other.nrows():
    82188218            if transformation:
    82198219                return (False, None)
    82208220            else: