Fix bug in mixed-type matrix multiplication.

This commit is contained in:
Marcel Keller
2023-04-03 13:25:27 +10:00
parent 34b4dd0701
commit e3ed7f6c5a

View File

@@ -6396,7 +6396,10 @@ class SubMultiArray(_vectorizable):
pass
t.params = res_params
else:
t = self.value_type
if issubclass(self.value_type, _secret_structure):
t = self.value_type
else:
t = type(self.value_type(0) * other.value_type(0))
res_matrix = Matrix(self.sizes[0], other.sizes[1], t)
try:
try: