in svinfer/processor/matrix.py [0:0]
def __mul__(self, other):
if isinstance(other, int) or isinstance(other, float):
return SqlMatrix([
self.value[j] * float(other) for j in range(self.ncol)
])
if isinstance(other, SqlMatrix):
assert other.ncol == self.ncol or other.ncol == 1
return SqlMatrix([
self.value[j] * other.value[j % other.ncol]
for j in range(self.ncol)
])
return NotImplemented