(self)
return cls._new(0, self.cols, [])
Returns an Immutable version of this Matrix
Returns an Immutable version of this Matrix
Returns an Immutable version of this Matrix
def as_immutable(self):
        """Returns an Immutable version of this Matrix
        """
        from .immutable import ImmutableMatrix as cls
        if self.rows:
            return cls._new(self.tolist())
        return cls._new(0, self.cols, [])
def as_immutable ( self ) : from . immutable import ImmutableMatrix as cls if self . rows : return cls . _new ( self . tolist ( ) ) return cls . _new ( 0 , self . cols , [ ] )