Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

numpy vector multiplication

a = np.array([[ 5, 1 ,3], 
              [ 1, 1 ,1], 
              [ 1, 2 ,1]])
b = np.array([1, 2, 3])
print a.dot(b)
array([16, 6, 8])
Comment

PREVIOUS NEXT
Code Example
Python :: Adding function to a varieble in python 
Python :: python - remove floating in a dataframe 
Python :: python sort list 
Python :: random picker python 
Python :: arrange array in ascending order python 
Python :: numpy find columns containing nan 
Python :: python replace by dictionary 
Python :: python create function 
Python :: python set day of date to 1 
Python :: python remove space from end of string 
Python :: python hide input 
Python :: rmse python 
Python :: replace all values in column pandas 
Python :: setting urls 
Python :: how to update list in python 
Python :: how to give autocomplete in python 
Python :: remove tuple from list python 
Python :: check if point is inside polygon python 
Python :: concatenate python 
Python :: python to find the biggest among 3 numbers 
Python :: what is NoReverseMatch in django? 
Python :: lambda python 
Python :: start python virtual 
Python :: plotly graph object colorscale 
Python :: dataclass default list 
Python :: python path to python executable 
Python :: drop first two rows pandas 
Python :: grouped bar chart matplotlib 
Python :: python edit global variable in function 
Python :: remove character(s)from each column in dataframe 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =