getting_started_with_arrays/quickref.tex
author Puneeth Chaganti <punchagan@fossee.in>
Thu, 02 Dec 2010 14:43:42 +0530
changeset 523 54bdda4aefa5
parent 522 d33698326409
permissions -rw-r--r--
Renamed some LOs and other minor corrections.

Creating an array:\\
{\ex \lstinline|    a = array([[1,2,3,4],[5,6,7,8]])|}

Finding shape of array:\\
{\ex \lstinline|    a.shape|}

Reshape an array:\\
{\ex \lstinline|    a.reshape(4,2)|}

Creating identity matrix:\\
{\ex \lstinline|    identity(3)|}

Creating matrix with all zeros:\\
{\ex \lstinline|    z = zeros((4,2))|}