Python Arrays
Python Arrays
NumPy
Arrays
NumPy
• NumPy is a Python library used for working with arrays.
• It also has functions for working in domain of linear algebra, functions fourier
transform, and matrices.
• It is an open source project and you can use it freely.
• NumPy stands for Numerical Python.
The result includes the start index, but excludes the end index.
Try this also
Slicing 2-D Arrays
❖ From the second element, slice elements from index 1 to index 4 (not
included):
The copy SHOULD NOT be affected by the changes made to the original array, where
as the view SHOULD be affected by the changes made to the original array.
Shape of an Array
Output ??
Determinant of a matrix using NumPy
numpy.linalg.det() function.
Output:
Inverse of a matrix using NumPy
np.linalg.inv() function