Numpy

[Pages:47]numpy

#numpy

1

1: numpy

2

2

2

Examples

3

Mac

3

Windows

3

Linux

4

5

Jupyter Rackspace

5

2: numpy.cross

6

6

6

Examples

6

7

7

-

8

3: numpy.dot

10

10

10

10

Examples

10

10

11

out

11

12

4:

15

Examples

15

15

5:

16

16

Examples

16

16

16

16

16

,

17

6: np.linalg

19

19

Examples

19

np.solve

19

np.linalg.lstsq

20

7:

22

22

22

Examples

22

22

23

25

26

27

27

28

?

30

CSV

30

n- : ndarray

31

8: ndarray

33

33

Examples

33

33

9:

35

35

Examples

35

np.polyfit

35

np.linalg.lstsq

35

10:

37

37

Examples

37

numpy.save numpy.load

37

11: IO numpy

38

Examples

38

numpy

38

38

CSV ASCII

38

CSV

39

12:

41

Examples

41

41

41

43

You can share this PDF with anyone you feel could benefit from it, downloaded the latest version from: numpy

It is an unofficial and free numpy ebook created for educational purposes. All the content is extracted from Stack Overflow Documentation, which is written by many hardworking individuals at Stack Overflow. It is neither affiliated with Stack Overflow nor official numpy.

The content is released under Creative Commons BY-SA, and the list of contributors to each chapter are provided in the credits section at the end of this book. Images may be copyright of their respective owners unless otherwise specified. All trademarks and registered trademarks are the property of their respective company owners.

Use the content presented in this book at your own risk; it is not guaranteed to be correct nor accurate, please send your feedback and corrections to info@



1

1: numpy

NumPy ( ?numb pie? ?numb pea?) Python, , .

1.3.0 2009-03-20 1.4.0 2010-07-21 1.5.0 2010-11-18 1.6.0 2011-05-15 1.6.1 2011-07-24 1.6.2 2012-05-20 1.7.0 2013-02-12 1.7.1 2013-04-07 1.7.2 2013-12-31 1.8.0 2013-11-10 1.8.1 2014-03-26 1.8.2 2014-08-09 1.9.0 2014-09-07 1.9.1 2014-11-02 1.9.2 2015-03-01 1.10.0 2015-10-07 1.10.1 2015-10-12



2

1.10.2 2015-12-14 1.10.4 * 2016-01-07 1.11.0 2016-05-29

Examples

Mac

NumPy Mac - pip

pip install numpy

Conda . Conda Windows, Mac Linux

1. Conda. Conda: Anaconda ( , numpy), Miniconda ( Conda, Python , , - ). Anaconda, Miniconda Conda.

2. Miniconda, conda install numpy

Windows

Numpy pypi ( , ) Windows. Windows .

. Python. Python 3.5 64- :

1. numpy-1.11.1+mkl-cp35-cp35m-win_amd64.whl 2. Windows (cmd powershell) 3. pip install C:\path_to_download\numpy-1.11.1+mkl-cp35-cp35m-

win_amd64.whl

, Winpython, . , Anaconda Python .

conda ,



3

.

1. conda . 2. Windows-. 3. conda install numpy

Linux

NumPy Linux , Linux.

Linux NumPy Python 2.x Python 3.x. Ubuntu Debian numpy , APT:

sudo apt-get install python-numpy sudo apt-get install python3-numpy

, zypper (Suse), yum (Fedora) . .

numpy Python pip Python 2 pip3 Python 3:

pip install numpy # install numpy for Python 2 pip3 install numpy # install numpy for Python 3

pip Linux Python 2 Python 3, :

sudo apt-get install python-pip # pip for Python 2 sudo apt-get install python3-pip # pip for Python 3

pip Python 2 pip3 Python 3, pip Python. , , numpy ( , , fortran . .).

numpy , (, ) numpy Python, virtualenv . Ubuntu virtualenv , :

sudo apt-get install virtualenv

virtualenv Python 2 Python 3, pip



4

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download