diff --git a/README.html b/README.html index c535b70..29626c5 100644 --- a/README.html +++ b/README.html @@ -86,12 +86,10 @@ is:
Create a 3x3x3 array with random values
-Z = np.random.random((3,3,3)) print Z-
Create a 8x8 matrix and fill it with a checkerboard pattern
@@ -157,13 +155,11 @@ is:
Create a random vector of size 30 and find the mean value
-Z = np.random.random(30) m = Z.mean() print m-
Make an array immutable (read-only)
@@ -266,14 +262,12 @@ point by point distances
Find the nearest value from a given value in an array
-Z = np.random.uniform(0,1,10) z = 0.5 m = Z.flat[np.abs(Z - z).argmin()] print m-
Consider the following file:
@@ -387,7 +381,6 @@ dimensions (5,5) ?
How to swap two rows of an array ?
-# Author: Eelco Hoogendoorn @@ -395,7 +388,6 @@ dimensions (5,5) ? A[[0,1]] = A[[1,0]] print A-
Consider a one-dimensional array Z, build a two-dimensional array whose first row is (Z[0],Z[1],Z[2]) and each subsequent row is shifted by 1 (last