array([ - - - - - ] ] ] - ] ]]in [ ]qr qr(matin [ ] out[ ]array([- - - - - - ] - ] ]- ] ]]see table - for list of some of the most commonly-used linear algebra functions the scientific python community is hopeful that there may be matrix multiplication infix operator implemented somedayproviding syntactically nicer alternative to using np dot but for now this is the way table - commonly-used numpy linalg functions function description diag return the diagonal (or off-diagonalelements of square matrix as arrayor convert array into square matrix with zeros on the off-diagonal dot matrix multiplication trace compute the sum of the diagonal elements det compute the matrix determinant eig compute the eigenvalues and eigenvectors of square matrix inv compute the inverse of square matrix pinv compute the moore-penrose pseudo-inverse inverse of square matrix qr compute the qr decomposition svd compute the singular value decomposition (svdsolve solve the linear system ax for xwhere is square matrix lstsq compute the least-squares solution to xb random number generation the numpy random module supplements the built-in python random with functions for efficiently generating whole arrays of sample values from many kinds of probability numpy basicsarrays and vectorized computation www it-ebooks info