Найти - Пользователи
Полная версия: ValueError: operands could not be broadcast together with shapes
Начало » Python для новичков » ValueError: operands could not be broadcast together with shapes
1
vladimircape
Добрый день.
Путаюсь вычислить матрицу
b = y * a.T * np.linalg.inv(a*a.T)
но выдаёт ошибку
ValueError: operands could not be broadcast together with shapes (47,3) (3,47)
в чём причина?
py.user.next
Для перемножения матриц используй numpy.dot()
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB