Horje
matrix outer product python Code Example
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.]])
Source: numpy.org




Python

Related
python variable Code Example python variable Code Example
run python test in terminal Code Example run python test in terminal Code Example
drop columns pandas dataframe Code Example drop columns pandas dataframe Code Example
ffmpeg python slow down frame rate Code Example ffmpeg python slow down frame rate Code Example
ModuleNotFoundError: No module named 'boto3' Code Example ModuleNotFoundError: No module named 'boto3' Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7