From dfd30ccfe16229203702ae0332165e14fdaf80cf Mon Sep 17 00:00:00 2001 From: Shantanu Date: Tue, 22 Dec 2009 14:10:37 +0530 Subject: commited changes made for scipy and cheatsheats. --- day1/cheatsheet4.tex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'day1/cheatsheet4.tex') diff --git a/day1/cheatsheet4.tex b/day1/cheatsheet4.tex index d04609a..d89e8a2 100755 --- a/day1/cheatsheet4.tex +++ b/day1/cheatsheet4.tex @@ -28,7 +28,7 @@ Matrix Creation\\ \typ{In []: C = array([[1,1,2], [2,4,1], [-1,3,7]])}\\ It creates C matrix of shape 3x3\\ -Shape is dimenions of given array. +Shape is dimensions of given array. \begin{lstlisting} In []: C.shape Out[]: (3, 3) @@ -38,7 +38,7 @@ Out[]: (3, 2) \typ{In []: B = ones_like(C)} \\ B would be array of ones with the same shape and type as C.\\ \typ{In []: A = ones((3,2))} \\ -A would be new array of given shape(arguments), filled with ones.\\ +A would be new matrix of given shape(arguments), filled with ones.\\ \typ{In []: I = identity(3)}\\ I would be identity matrix of shape 3x3 @@ -77,7 +77,7 @@ array([[ 1, 1, 2], \end{lstlisting} \subsection{Slicing} -Accessing rows with Matricies is straightforward. But If one wants to access particular Column, or want a sub-matrix, Slicing is the way to go. +Accessing rows with Matrices is straightforward. But If one wants to access particular Column, or want a sub-matrix, Slicing is the way to go. \begin{lstlisting} In []: C[:,1] Out[]: array([1, 0, 3]) -- cgit