2018-04-03から1日間の記事一覧
100 Numpy Exercisesの86番を見て知ったテクニック。これは数値を2進数表記する問題。 86.Convert a vector of ints into a matrix binary representation (★★★) # Author: Warren Weckesser I = np.array([0, 1, 2, 3, 15, 16, 32, 64, 128]) B = ((I.resha…
100 Numpy Exercisesの86番を見て知ったテクニック。これは数値を2進数表記する問題。 86.Convert a vector of ints into a matrix binary representation (★★★) # Author: Warren Weckesser I = np.array([0, 1, 2, 3, 15, 16, 32, 64, 128]) B = ((I.resha…