Compte Rendu Matrice Numpy
Compte Rendu Matrice Numpy
1. Création de matrices
matrix_1 = np.arange(1, 10).reshape(3, 3)
matrix_zeros = np.zeros((4, 4))
matrix_ones = np.ones((4, 4))
identity_matrix = np.eye(5)
2. Indexation et slicing
7. Calcul du déterminant
matrix_4x4_random = np.random.random((4, 4))
determinant_4x4 = np.linalg.det(matrix_4x4_random)
8. Inversion de matrice