Matrix multiplication: Difference between revisions
Content deleted Content added
→{{header|Python}}: add list comp oneliner |
|||
Line 2,340:
Using list comprehensions, multiplying matrices represented as lists of lists. (Input is not validated):
<lang python>def mm(A, B):
return [[sum(
Another one, use numpy the most popular array package for python
|