Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

NumPy right_shift Code When inputs and bit shift are an arrays

# welcome to softhunt.net
# Python program explaining
# right_shift() function

import numpy as np

arr = [21, 15, 43]
bit_shift_arr =[2, 3, 4]

print ("Input array : ", arr)
print ("array of bit shift : ", bit_shift_arr )
	
ans = np.right_shift(arr, bit_shift_arr)
print ("After right shifting 2 bit : ", ans)
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #NumPy #Code #When #inputs #bit #shift #arrays
ADD COMMENT
Topic
Name
5+2 =