dpilger26 / NumCpp

C++ implementation of the Python Numpy library
https://dpilger26.github.io/NumCpp
MIT License
3.56k stars 555 forks source link

Multiply with BroadCasting. e.g. shape: [1,3] * [2,1] => [2 * 3] #147

Closed ValkyriaLenneth closed 1 year ago

ValkyriaLenneth commented 2 years ago

Thanks for you project. But I found that the broadcasting in numpy is likely not supported in NumCpp. For example, I have two matrixs: A=[1,2,3] B = [[1], [2], [3]] In numpy, A * B is [ [1,2,3], [2,4,6], [3,6,9]] However, in NumCpp, the error occured. Thus I want to ask that are the shapes of two matrixs must be the same in NumCpp?

dpilger26 commented 1 year ago

Added in Release Version 2.10.0.