diff -r 88a01948450d -r d33698326409 getting_started_with_arrays/quickref.tex --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/getting_started_with_arrays/quickref.tex Wed Dec 01 16:51:35 2010 +0530 @@ -0,0 +1,14 @@ +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))|}