# HG changeset patch # User Shantanu # Date 1271311292 -19800 # Node ID 38ef280b1408a28aee83ad29c23f72fb992da0f9 # Parent 86c862b3dbef294ecf9b200b504e9c6a12295208 Minor changes to arrays.txt. diff -r 86c862b3dbef -r 38ef280b1408 arrays.txt --- a/arrays.txt Wed Apr 14 16:40:58 2010 +0530 +++ b/arrays.txt Thu Apr 15 11:31:32 2010 +0530 @@ -1,11 +1,11 @@ Hello and welcome to the tutorial on Matrices. All matrices operations are done using arrays. -We have already seen in previous session that how arrays are better suited for particular mathematical operations. In this session we are going to cover more details on Arrays, how to create/initialize them, how to manipulate and use them for solving given problem. +We have already seen in previous session that how arrays are better suited for particular mathematical operations. In this session we are going to cover more details on Arrays(matrices), how to create/initialize them, how to manipulate and use them for solving given problem. First thing first, we start with creating a normal array by: a (equal to)= array([5, 8, 10, 13]) -and we have a as array. we can cross the content by +and we have a as array, check the value by a Here a is single dimension array, that is it has only one row. We can create multi-dimensional arrays by @@ -18,11 +18,11 @@ c.shape some other handy array initialization methods are also available to make life easier. -say we want to create a array of size 3x4 with all values initialized to be 1, we can use +say we want to create an array of size 3x4 with all the values initialized to be 1, we can use b = ones((3, 4)) -check value by +and b will be b -similarly, we already have a array, and we want to create one more array with same shape and initial values to be one, for that we will use +similarly, if we already have an array, and we want to create one more array with the same shape and initial values to be one, for that we will use d = ones_like(c) and d will be 3x3 array with all values 1 @@ -168,6 +168,7 @@ Striding A bit of image processing Functions available for arrays + Thank you ----------------