Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

matrix outer product python

>>> import numpy as np
>>> rl = np.outer(np.ones((5,)), np.linspace(-2, 2, 5))
>>> rl
array([[-2., -1.,  0.,  1.,  2.],
       [-2., -1.,  0.,  1.,  2.],
       [-2., -1.,  0.,  1.,  2.],
       [-2., -1.,  0.,  1.,  2.],
       [-2., -1.,  0.,  1.,  2.]])
Comment

PREVIOUS NEXT
Code Example
Python :: how to for loop length print in python 
Python :: python sports api 
Python :: How to estimate memory of dataset using python command 
Python :: datetime pypi 
Python :: python import module with minus in its name 
Python :: types of methods in oop python 
Python :: print without parenthesis 
Python :: c to python converter 
Python :: python chunks 
Python :: how to find the medium, first, second and third quartile in a pandas data frame 
Python :: nsetools index list 
Python :: BeautifulSoup in pretty way 
Python :: python class udp 
Python :: waitress 
Python :: List Method: list append vs extend 
Python :: if condition in python 1 
Python :: PILImage.py", line 2975, in open fp = builtins.open(filename, "rb") PermissionError: [Errno 13] Permission denied: 
Python :: programação funcional python - append 
Python :: select series of columns 
Python :: python item defined in different definition stackoverflow 
Python :: Convert this bash command into Python echo have a nice day Quizlet 
Python :: How to get a mock image in django? 
Python :: Flask migration method, see the artcle for more info 
Python :: Create tiff stack in python 
Python :: onetoone vs foreign key django 
Python :: Python Print Variable Using comma , character to separate the variables in a print statement 
Python :: How to make bot commands case insensitive in discord.py 
Python :: omr sheet python stackoverflow 
Python :: arm str example 
Python :: how to check the version of ployly 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =