Language/Python

[Python / 프로그래머스 level 2] 행렬의 곱셈

ej503 2021. 8. 5. 14:04

import numpy as np

def solution(A, B):
    answer = [[]]
    answer = (np.matrix(A)*np.matrix(B)).tolist()
    return answer