Commits

German Larrain  committed 5ee5291

utils.math.matrix_multiply: fixed bug for case when the result was of one dimension

  • Participants
  • Parent commits 4d6ac67

Comments (0)

Files changed (1)

File ars/utils/mathematical.py

 	a2 = np.array(matrix2)
 	result = np.dot(a1, a2)
 
-	return np_matrix_to_tuple(result)
+	if result.ndim == 1:
+		return tuple(result)
+	else:
+		return np_matrix_to_tuple(result)
 
 
 def matrix_as_tuple(matrix_):