Skip to content

Commit

Permalink
Merge pull request Open-Deep-ML#160 from Selbl/Alternative-Solution-P…
Browse files Browse the repository at this point in the history
…roblem-8

Problem 8 - Numpy Solution
  • Loading branch information
moe18 authored Nov 17, 2024
2 parents d5a45cc + b71f472 commit ffa72a2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Problems/8_Calculate_2x2_Matrix_Inverse/solution_2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import numpy as np

def inverse_2x2(matrix: list[list[float]]) -> list[list[float]]:
return np.linalg.inv(np.array(matrix))

0 comments on commit ffa72a2

Please sign in to comment.