Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

use reshape in python with zeros

# This assumes that you have a 2-dimensional array
zeros = np.zeros(shape, dtype=np.int32)
zeros[:sigma.shape[0], :sigma.shape[1]] = sigma
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #reshape #python #zeros
ADD COMMENT
Topic
Name
1+4 =