add difficulty
This commit is contained in:
@@ -212,7 +212,7 @@ Z[::2,1::2] = 1
|
||||
print(Z)
|
||||
|
||||
< q20
|
||||
Consider a (6,7,8) shape array, what is the index (x,y,z) of the 100th element?
|
||||
Consider a (6,7,8) shape array, what is the index (x,y,z) of the 100th element? (★☆☆)
|
||||
|
||||
< h20
|
||||
hint: np.unravel_index
|
||||
@@ -323,7 +323,7 @@ Z/1/1
|
||||
Z<Z>Z
|
||||
|
||||
< q28
|
||||
What are the result of the following expressions?
|
||||
What are the result of the following expressions? (★☆☆)
|
||||
```python
|
||||
np.array(0) / np.array(0)
|
||||
np.array(0) // np.array(0)
|
||||
@@ -572,7 +572,7 @@ Z['x'], Z['y'] = np.meshgrid(np.linspace(0,1,5),
|
||||
print(Z)
|
||||
|
||||
< q47
|
||||
Given two arrays, X and Y, construct the Cauchy matrix C (Cij =1/(xi - yj))
|
||||
Given two arrays, X and Y, construct the Cauchy matrix C (Cij =1/(xi - yj)) (★★☆)
|
||||
|
||||
< h47
|
||||
hint: np.subtract.outer
|
||||
|
||||
Reference in New Issue
Block a user