mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-30 16:31:08 +00: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)
|
shape += _shape(matrix_b)
|
||||||
if shape[0] != shape[2] or shape[1] != shape[3]:
|
if shape[0] != shape[2] or shape[1] != shape[3]:
|
||||||
raise ValueError(f"operands could not be broadcast together with shape "
|
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]]
|
return [shape[0], shape[2]], [shape[1], shape[3]]
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user