Skip to content

Commit 00b93cb

Browse files
authored
Merge pull request #231 from Emmet-Ray/Emmet-Ray-fixed-typos
fixed typos
2 parents 814f08e + 125ae60 commit 00b93cb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

source/exercises100.ktx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ Z = np.arange(10)
506506
np.add.reduce(Z)
507507

508508
< q42
509-
Consider two random array A and B, check if they are equal (★★☆)
509+
Consider two random arrays A and B, check if they are equal (★★☆)
510510

511511
< h42
512512
hint: np.allclose, np.array_equal
@@ -586,7 +586,7 @@ C = 1.0 / np.subtract.outer(X, Y)
586586
print(np.linalg.det(C))
587587

588588
< q48
589-
Print the minimum and maximum representable value for each numpy scalar type (★★☆)
589+
Print the minimum and maximum representable values for each numpy scalar type (★★☆)
590590

591591
< h48
592592
hint: np.iinfo, np.finfo, eps
@@ -659,7 +659,7 @@ D = scipy.spatial.distance.cdist(Z,Z)
659659
print(D)
660660

661661
< q53
662-
How to convert a float (32 bits) array into an integer (32 bits) in place?
662+
How to convert a float (32 bits) array into an integer (32 bits) array in place?
663663

664664
< h53
665665
hint: view and [:] =
@@ -969,7 +969,7 @@ Z0[::nz+1] = Z
969969
print(Z0)
970970

971971
< q71
972-
Consider an array of dimension (5,5,3), how to mulitply it by an array with dimensions (5,5)? (★★★)
972+
Consider an array of dimension (5,5,3), how to multiply it by an array with dimensions (5,5)? (★★★)
973973

974974
< h71
975975
hint: array[:, :, None]
@@ -1145,7 +1145,7 @@ def distance_points_to_lines(p: np.ndarray, p_1: np.ndarray, p_2: np.ndarray) ->
11451145
distance_points_to_lines(p, P0, P1)
11461146

11471147
< q80
1148-
Consider an arbitrary array, write a function that extract a subpart with a fixed shape and centered on a given element (pad with a `fill` value when necessary) (★★★)
1148+
Consider an arbitrary array, write a function that extracts a subpart with a fixed shape and centered on a given element (pad with a `fill` value when necessary) (★★★)
11491149

11501150
< h80
11511151
hint: minimum maximum
@@ -1366,7 +1366,7 @@ print (Z[np.argsort(Z)[-n:]])
13661366
print (Z[np.argpartition(-Z,n)[:n]])
13671367

13681368
< q90
1369-
Given an arbitrary number of vectors, build the cartesian product (every combinations of every item) (★★★)
1369+
Given an arbitrary number of vectors, build the cartesian product (every combination of every item) (★★★)
13701370

13711371
< h90
13721372
hint: np.indices

0 commit comments

Comments
 (0)