Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

numpy identity matrix

>>> np.identity(3)
array([[1.,  0.,  0.],
       [0.,  1.,  0.],
       [0.,  0.,  1.]])
Comment

identity matrix with numpy

>>> np.eye(3)
array([[1.,  0.,  0.],
       [0.,  1.,  0.],
       [0.,  0.,  1.]])
Comment

PREVIOUS NEXT
Code Example
Python :: how to sort a dictionary by value in python 
Python :: python test if number in string 
Python :: pandas number of observations 
Python :: drop duplicates pandas first column 
Python :: how to ascess GPS in python 
Python :: python tkinter change label text 
Python :: django logout 
Python :: change pandas column value based on condition 
Python :: download from radio javan python 
Python :: SQL Query to Join Two Tables Based Off Closest Timestamp 
Python :: views.home not found django 
Python :: vertical line in matplotlib 
Python :: access last element of list python 
Python :: python record screen 
Python :: python run another python script 
Python :: godot 2d movement 
Python :: python locks 
Python :: tag for deleting a list in python 
Python :: python os is directory 
Python :: django q filter 
Python :: how to get started with python 
Python :: pandas column to numpy array 
Python :: t.interval scipy 
Python :: how to use tensorboard 
Python :: pandas select row by index 
Python :: equivalent of setInterval python 
Python :: print undeline and bold text in python 
Python :: open applications by python 
Python :: how to wait in pygame 
Python :: write geopands into postgres python 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =