Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python NumPy copyto function example copy elements from a source array to a destination array.

# import the important module in python
import numpy as np
         
# make an array with numpy
softhunt = np.array([1, 2, 3])
softhunt_array = [7, 3, 7]
         
# applying numpy.copyto() method
np.copyto(softhunt, softhunt_array)
   
print(softhunt)
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Python #NumPy #copyto #function #copy #elements #source #array #destination
ADD COMMENT
Topic
Name
6+9 =