# User:Jarle Pahr/NumPy

### From OpenWetWare

(Difference between revisions)

(→Matrices and arrays) |
|||

Line 16: | Line 16: | ||

http://stackoverflow.com/questions/3337301/numpy-matrix-to-array | http://stackoverflow.com/questions/3337301/numpy-matrix-to-array | ||

+ | |||

+ | |||

+ | Matrices: | ||

+ | *Strictly 2-dimensional | ||

+ | *Use of * results in matrix multiplication | ||

+ | *Element-wise multiplication achieved with multiply() | ||

+ | |||

+ | |||

+ | |||

+ | Arrays: | ||

+ | *Use of * results in element-wise multiplication | ||

+ | *Matrix multiplication achieved with dot() |

## Revision as of 04:42, 23 August 2013

http://wiki.scipy.org/NumPy_for_Matlab_Users

https://pypi.python.org/pypi/numpy

http://wiki.scipy.org/Tentative_NumPy_Tutorial

64-bit installers: http://www.lfd.uci.edu/~gohlke/pythonlibs/

# Matrices and arrays

http://stackoverflow.com/questions/12024820/danger-of-mixing-numpy-matrix-and-array

http://stackoverflow.com/questions/3337301/numpy-matrix-to-array

Matrices:

- Strictly 2-dimensional
- Use of * results in matrix multiplication
- Element-wise multiplication achieved with multiply()

Arrays:

- Use of * results in element-wise multiplication
- Matrix multiplication achieved with dot()