Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 507 Bytes

README.md

File metadata and controls

12 lines (8 loc) · 507 Bytes

100_Numpy_exercises

100 Numpy Exercises which could help you improve your ability of NumPy

the original URL: https://github.com/rougier/numpy-100/edit/master/100_Numpy_exercises_no_solution.md

Here are some difficult problems which I did not solve at the beginning.

47. Given two arrays, X and Y, construct the Cauchy matrix C (Cij =1/(xi - yj))

Hint: np.subtract.outer()

51. Create a structured array representing a position (x,y) and a color (r,g,b) (★★☆)

z = np.zeros(10, [(), ()])