#NEWLINE# def structurally_equal( self , other ) : #NEWLINE# #INDENT# return ( isinstance ( other , BlockMatrix ) and ( self . shape == other . shape ) and ( self . blockshape == other . blockshape ) and ( self . rowblocksizes == other . rowblocksizes ) and ( self . colblocksizes == other . colblocksizes ) )