xtensor-stack / xtensor-blas

BLAS extension to xtensor
BSD 3-Clause "New" or "Revised" License
158 stars 55 forks source link

Add element-wise multiply #161

Closed yuukicammy closed 4 years ago

yuukicammy commented 4 years ago

This pull request adds an element-wise multiply function like numpy.multiply. Same as numpy.multiply, the function computes the product of arguments x1 and x2, element-wise. The result is a scalar if both arguments are scalars. if x1.shape() != x2.shape(), the function computes the element-wise product with broadcasting.

yuukicammy commented 4 years ago

I'm sorry for the confusion. I made sure to get the same results with * simply. Let me close it out.