def __rtruediv__()

in svinfer/processor/matrix.py [0:0]


    def __rtruediv__(self, other):
        if isinstance(other, int) or isinstance(other, float):
            return SqlMatrix([
                float(other) / self.value[j] for j in range(self.ncol)
            ])
        if isinstance(other, SqlMatrix):
            assert other.ncol == self.ncol or other.ncol == 1
            return SqlMatrix([
                other.value[j % other.ncol] / self.value[j]
                for j in range(self.ncol)
            ])
        return NotImplemented