appunti3s:numpy
This is an old revision of the document!
indice < linguaggio_python
numpy
Il python classico usa gli oggetti unidimensionali array.array
numpy permette di usare un nuovo tipo di array
numpy.array
Vediamo un esempio
import numpy as np b = np.array([1.2, 3.5, 5.1]) c = np.array( [ [1.0,2.0], [3.0,4.0] ], dtype=complex ) d = np.zeros((3, 4)) e = np.ones((3, 4))
appunti3s/numpy.1594245032.txt.gz · Last modified: 2020/07/08 23:50 by profpro