Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

NumPy bitwise_or Code When inputs are Boolean

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

import numpy as np

bool1 = [True, False, False, True, False, True]
bool2 = [False, True, False, True, True, False]

print ("Input array1 : ", bool1)
print ("Input array2 : ", bool2)
	
np = np.bitwise_or(bool1, bool2)
print ("Output array after bitwise_or: ", np)
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #NumPy #Code #When #inputs #Boolean
ADD COMMENT
Topic
Name
1+6 =