Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to do element wise multiplication in numpy

numpy.multiply(arr1, arr2)
Comment

numpy multiply element wise

import numpy as np
a = np.array([[1,2],[3,4]])
b = np.array([[5,6],[7,8]])
np.multiply(a,b)
Comment

PREVIOUS NEXT
Code Example
Python :: python recursion factorial 
Python :: python function docstring 
Python :: .replit file python 
Python :: how to automatically install python packages 
Python :: python check if file is writable 
Python :: sns boxplot 
Python :: python dict copy() 
Python :: python compute cross product 
Python :: activate python virtual environment 
Python :: batch gradient descent python 
Python :: modern tkinter 
Python :: Python random integer number between min, max 
Python :: empty list in python 
Python :: how to change value of categorical variable in python 
Python :: create nested dictionary with user input in python 
Python :: pandas count number of repetitions of each diferent value 
Python :: most repeated character in a string python 
Python :: check multiple keys in python dict 
Python :: scree plot sklearn 
Python :: join lists python 
Python :: type python 
Python :: isoformat datetime python 
Python :: Genisim python 
Python :: python redirect with button click 
Python :: how to change int to string in python 
Python :: how to open pygame 
Python :: dda line drawing algorithm 
Python :: get xlim python 
Python :: load data python 
Python :: scikit learn to identify highly correlated features 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =