# Array & Matrix in numpy

2012-12-19

Recently I decide to transfer my code from matlab to python. But compared with matlab, python has far less functions to handle arrays and matrix (perhaps I don't know yet). Some tricky things I discovered:

For array, '*' means element-wise multiplication, and the dot() function is used for matrix multiplication.

For matrix, '*' means matrix multiplication, and the multiply() function is used for element-wise multiplication.