Certainly!
Here are 100 functions provided by the NumPy library along with their common uses:
1. `np.array()`: Create a NumPy array from a Python list or tuple.
2. `np.zeros()`: Create an array filled with zeros.
3. `np.ones()`: Create an array filled with ones.
4. `np.full()`: Create an array filled with a specified value.
5. `np.empty()`: Create an uninitialized array.
6. `np.arange()`: Create an array with evenly spaced values within a range.
7. `np.linspace()`: Create an array with evenly spaced values over a specified interval.
8. `np.eye()`: Create an identity matrix.
9. `np.random.rand()`: Generate random numbers from a uniform distribution.
10. `np.random.randn()`: Generate random numbers from a standard normal distribution.
11. `np.random.randint()`: Generate random integers within a specified range.
12. `np.random.shuffle()`: Shuffle the contents of an array.
13. `np.random.choice()`: Generate a random sample from a given 1-D array.
14. `np.random.seed()`: Seed the random number generator for reproducibility.
15. `np.reshape()`: Reshape an array into a new shape.
16. `np.concatenate()`: Concatenate arrays along a specified axis.
17. `np.stack()`: Stack arrays along a new axis.
18. `np.split()`: Split an array into multiple sub-arrays.
19. `np.transpose()`: Transpose the rows and columns of an array.
20. `np.swapaxes()`: Swap the axes of an array.
21. `np.flip()`: Reverse the order of elements in an array.
22. `np.ravel()`: Flatten a multi-dimensional array into a 1-D array.
23. `np.squeeze()`: Remove single-dimensional entries from the shape of an array.
24. `np.argmax()`: Find the indices of the maximum value along an axis.
25. `np.argmin()`: Find the indices of the minimum value along an axis.
26. `np.max()`: Find the maximum value in an array.
27. `np.min()`: Find the minimum value in an array.
28. `np.mean()`: Compute the arithmetic mean along a specified axis.
29. `np.median()`: Compute the median along a specified axis.
30. `np.std()`: Compute the standard deviation along a specified axis.
31. `np.var()`: Compute the variance along a specified axis.
32. `np.sum()`: Compute the sum of array elements along a specified axis.
33. `np.prod()`: Compute the product of array elements along a specified axis.
34. `np.cumsum()`: Compute the cumulative sum of array elements along a specified axis.
35. `np.cumprod()`: Compute the cumulative product of array elements along a specified axis.
36. `np.any()`: Test whether any array element along a given axis evaluates to True.
37. `np.all()`: Test whether all array elements along a given axis evaluate to True.
38. `np.where()`: Return elements chosen from two arrays based on a condition.
39. `np.isnan()`: Test whether array elements are NaN (Not a Number).
40. `np.isinf()`: Test whether array elements are positive or negative infinity.
41. `np.isfinite()`: Test whether array elements are finite (not NaN, positive infinity, or negative
infinity).
42. `np.sort()`: Sort an array along a specified axis.
43. `np.argsort()`: Return the indices that would sort an array.
44. `np.searchsorted()`: Find the indices where elements should be inserted to maintain order.
45. `np.unique()`: Find the unique elements of an array.
46. `np.intersect1d()`: Find the common elements between two arrays.
47. `np.union1d()`: Find the unique elements that are in either of two arrays.
48. `np.setdiff1d()`: Find the elements that are in one array but not the other.
49. `np.interp()`: Interpolate values along a 1-D array.
50. `np.dot()`: Compute the dot product of two arrays.
51. `np.inner()`: Compute the inner product of two arrays.
52. `np.outer()`: Compute the outer product of two arrays.
53. `np.cross()`: Compute the cross product of two arrays.
54. `np.linalg.norm()`: Compute the Euclidean norm of an array.
55. `np.linalg.inv()`: Compute the inverse of a matrix.
56. `np.linalg.det()`: Compute the determinant of a matrix.
57. `np.linalg.eig()`: Compute the eigenvalues and eigenvectors of a square array.
58. `np.linalg.svd()`: Compute the singular value decomposition (SVD) of a matrix.
59. `np.linalg.solve()`: Solve a linear matrix equation.
60. `np.linalg.lstsq()`: Compute the least-squares solution to a linear matrix equation.
61. `np.histogram()`: Compute the histogram of a set of data.
62. `np.bincount()`: Count occurrences of each value in an array of non-negative integers.
63. `np.digitize()`: Return the indices of the bins to which each value in an array belongs.
64. `np.pad()`: Pad an array with values at the edges.
65. `np.clip()`: Clip (limit) the values in an array.
66. `np.tile()`: Construct an array by repeating a given array.
67. `np.meshgrid()`: Generate coordinate matrices from coordinate vectors.
68. `np.unique()`: Find the unique elements of an array.
69. `np.delete()`: Return a new array with sub-arrays along an axis deleted.
70. `np.insert()`: Insert values along the given axis before the given indices.
71. `np.broadcast_to()`: Broadcast an array to a new shape.
72. `np.full_like()`: Return a new array with the same shape and type as a given array, filled with a
specified value.
73. `np.empty_like()`: Return a new array with the same shape and type as a given array, but
uninitialized.
74. `np.zeros_like()`: Return a new array with the same shape and type as a given array, filled with
zeros.
75. `np.ones_like()`: Return a new array with the same shape and type as a given array, filled with
ones.
76. `np.argmax()`: Find the indices of the maximum value along an axis.
77. `np.argmin()`: Find the indices of the minimum value along an axis.
78. `np.argsort()`: Return the indices that would sort an array.
79. `np.argwhere()`: Find the indices of array elements that satisfy a condition.
80. `np.isclose()`: Test whether two arrays are element-wise equal within a tolerance.
81. `np.allclose()`: Test whether all elements of two arrays are equal within a tolerance.
82. `np.isin()`: Test whether each element in the first array is also present in the second array.
83. `np.where()`: Return elements chosen from two arrays based on a condition.
84. `np.ma.masked_array()`: Create a masked array where some elements are masked (ignored)
based on a condition.
85. `
np.ma.masked_where()`: Create a masked array where elements are masked based on a condition.
86. `np.ma.masked_equal()`: Create a masked array where elements are masked if they are equal to a
specified value.
87. `np.ma.masked_greater()`: Create a masked array where elements are masked if they are greater
than a specified value.
88. `np.ma.masked_less()`: Create a masked array where elements are masked if they are less than a
specified value.
89. `np.ma.mean()`: Compute the mean of a masked array.
90. `np.ma.median()`: Compute the median of a masked array.
91. `np.ma.std()`: Compute the standard deviation of a masked array.
92. `np.ma.var()`: Compute the variance of a masked array.
93. `np.ma.sum()`: Compute the sum of elements of a masked array.
94. `np.ma.prod()`: Compute the product of elements of a masked array.
95. `np.ma.where()`: Return elements from two arrays based on a condition, with elements from one
array masked if the condition is false.
96. `np.ma.any()`: Test whether any element of a masked array evaluates to True.
97. `np.ma.all()`: Test whether all elements of a masked array evaluate to True.
98. `np.ma.asarray()`: Convert input to a masked array.
99. `np.ma.concatenate()`: Concatenate masked arrays along a specified axis.
100. `np.ma.mask_rows()`: Mask rows of a masked array based on a condition.
Certainly! Here are 100 additional functions provided by the NumPy library along with their common
uses:
1. `np.cov()`: Compute the covariance matrix of a set of data.
2. `np.corrcoef()`: Compute the correlation coefficient matrix of a set of data.
3. `np.percentile()`: Compute the nth percentile of a set of data.
4. `np.histogram2d()`: Compute a 2D histogram.
5. `np.histogramdd()`: Compute an N-dimensional histogram.
6. `np.trapz()`: Integrate along the given axis using the composite trapezoidal rule.
7. `np.cumtrapz()`: Compute the cumulative integral of an array using the composite trapezoidal rule.
8. `np.diff()`: Compute the discrete difference of an array.
9. `np.gradient()`: Compute the gradient of an array.
10. `np.interp()`: Interpolate values along a 1-D array.
11. `np.linalg.solve()`: Solve a linear matrix equation.
12. `np.linalg.lstsq()`: Compute the least-squares solution to a linear matrix equation.
13. `np.linalg.matrix_power()`: Raise a square matrix to a given power.
14. `np.linalg.matrix_rank()`: Compute the rank of a matrix.
15. `np.linalg.norm()`: Compute the Euclidean norm of an array.
16. `np.linalg.cond()`: Compute the condition number of a matrix.
17. `np.linalg.pinv()`: Compute the Moore-Penrose pseudo-inverse of a matrix.
18. `np.linalg.tensorinv()`: Compute the inverse of a tensor.
19. `np.linalg.tensorsolve()`: Solve a tensor equation.
20. `np.linalg.eig()`: Compute the eigenvalues and eigenvectors of a square array.
21. `np.linalg.eigh()`: Compute the eigenvalues and eigenvectors of a Hermitian or symmetric array.
22. `np.linalg.eigvals()`: Compute the eigenvalues of a square array.
23. `np.linalg.eigvalsh()`: Compute the eigenvalues of a Hermitian or symmetric array.
24. `np.linalg.svd()`: Compute the singular value decomposition (SVD) of a matrix.
25. `np.linalg.qr()`: Compute the QR decomposition of a matrix.
26. `np.linalg.cholesky()`: Compute the Cholesky decomposition of a matrix.
27. `np.linalg.lu()`: Compute the LU decomposition of a matrix.
28. `np.linalg.solve_triangular()`: Solve a triangular system of equations.
29. `np.linalg.inv()`: Compute the inverse of a matrix.
30. `np.linalg.det()`: Compute the determinant of a matrix.
31. `np.linalg.slogdet()`: Compute the sign and natural logarithm of the determinant of a matrix.
32. `np.linalg.lstsq()`: Compute the least-squares solution to a linear matrix equation.
33. `np.linalg.tensorinv()`: Compute the inverse of a tensor.
34. `np.linalg.tensorsolve()`: Solve a tensor equation.
35. `np.linalg.matrix_power()`: Raise a square matrix to a given power.
36. `np.fft.fft()`: Compute the one-dimensional discrete Fourier Transform.
37. `np.fft.ifft()`: Compute the one-dimensional inverse discrete Fourier Transform.
38. `np.fft.fftn()`: Compute the N-dimensional discrete Fourier Transform.
39. `np.fft.ifftn()`: Compute the N-dimensional inverse discrete Fourier Transform.
40. `np.fft.fftshift()`: Shift the zero-frequency component to the center of the spectrum.
41. `np.fft.ifftshift()`: Shift the zero-frequency component to the edges of the spectrum.
42. `np.fft.rfft()`: Compute the one-dimensional real-valued discrete Fourier Transform.
43. `np.fft.irfft()`: Compute the one-dimensional inverse real-valued discrete Fourier Transform.
44. `np.fft.rfftn()`: Compute the N-dimensional real-valued discrete Fourier Transform.
45. `np.fft.irfftn()`: Compute the N-dimensional inverse real-valued discrete Fourier Transform.
46. `np.fft.fft2()`: Compute the two-dimensional discrete Fourier Transform.
47. `np.fft.ifft2()`: Compute the two-dimensional inverse discrete Fourier Transform.
48. `np.fft.rfft2()`: Compute the two-dimensional real-valued discrete Fourier Transform.
49. `np.fft.irfft2()`: Compute the two-dimensional inverse real-valued discrete Fourier Transform.
50. `np.fft.fftfreq()`: Compute the sample frequencies for the FFT output.
51. `np.fft.rfftfreq()`: Compute the sample frequencies for the real-valued FFT output.
52. `np.fft.ifftshift()`: Shift the zero-frequency component to the edges of the spectrum.
53. `np.fft.fftfreq()`: Compute the sample frequencies for the FFT output.
54. `np.fft.rfftfreq()`: Compute the sample frequencies for the real-valued FFT output.
55. `np.fft.ifftshift()`: Shift the zero-frequency component to the center of the spectrum.
56. `np.fft.fft2()`: Compute the two-dimensional discrete Fourier Transform.
57. `np.fft.ifft2()`: Compute the two-dimensional inverse discrete Fourier Transform.