mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
fix: Syntax Error lgtm display in matrix/matrix_operation.py.
This commit is contained in:
parent
a2b5a90c11
commit
4c629b4ce1
@ -123,7 +123,7 @@ def _verify_matrix_sizes(matrix_a, matrix_b):
|
||||
shape += _shape(matrix_b)
|
||||
if shape[0] != shape[2] or shape[1] != shape[3]:
|
||||
raise ValueError(f"operands could not be broadcast together with shape "
|
||||
f"({shape[0], shape[1]}), ({shape[2], shape[3]})")
|
||||
f"({shape[0]}, {shape[1]}), ({shape[2]}, {shape[3]})")
|
||||
return [shape[0], shape[2]], [shape[1], shape[3]]
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user