'Returns an Immutable version of this Matrix'

def as_immutable(self):

    from .immutable import ImmutableDenseMatrix as cls
    if (self.rows and self.cols):
        return cls._new(self.tolist())
    return cls._new(self.rows, self.cols, [])
