Python‎ > ‎numpy‎ > ‎

log2



The matrix values are calculated and add through nump.log2().
import numpy as np 
a=np.log2([[1,2],[2,3]])
b=np.log2([[1,2],[2,3]])
print(a+b) 
 [[0. 2. ] [2. 3.169925]]


Comments