Skip to content
Advertisement

How to get this result when multiplying 1d-array by 2d-array?

I am struggling to figure out, how the output is calculated can you please explain?

I have this

JavaScript

multiplied by this array :

c = np.array([3267. , 3375.9, 3484.8, 3630., 3740.])

the output is:

array([1050885., 1068309., 1085733., 1103157., 1120581.])

Advertisement

Answer

Grasping at straws because it feels like there’s not enough information to solve this. But, here is one way to get the result:

JavaScript

result:

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement