Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ dot_product
Method
dot_product
matrix/matrix_class.py:359–360 ·
view source on GitHub ↗
(cls, row: list[int], column: list[int])
Source
from the content-addressed store, hash-verified
357
358
@classmethod
359
def
dot_product(cls, row: list[int], column: list[int]) -> int:
360
return
sum(row[i] * column[i]
for
i in range(len(row)))
361
362
363
if
__name__ ==
"__main__"
:
Callers
1
__mul__
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected