美文网首页
Numpy note

Numpy note

作者: 我是传奇lz | 来源:发表于2018-07-23 21:06 被阅读4次

Understand the basic conception of the Numpy which is very important in opencv.

numpy mofan tutorial

numpy speed fast speed cuz base on C lan

numpy base on matrix, matrix is quicker and list and dict

basic properties of np

matrix

cvt a 2D array to np.array

import numpy as np
array = np.array(
    [
      [1,2,3], # a row
      [2,3,4]
    ]
)

print(array.shape)
print(array.size)

numpy class 3

dtype

dtype float int

a = np.arange(10,20,2)

相关文章

网友评论

      本文标题:Numpy note

      本文链接:https://www.haomeiwen.com/subject/pgcsmftx.html