mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 01:09:40 +08:00
from __future__ import annotations (#2464)
* from __future__ import annotations * fixup! from __future__ import annotations * fixup! from __future__ import annotations * fixup! Format Python code with psf/black push Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
@ -1,8 +1,9 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from decimal import Decimal
|
||||
from typing import List
|
||||
|
||||
|
||||
def inverse_of_matrix(matrix: List[List[float]]) -> List[List[float]]:
|
||||
def inverse_of_matrix(matrix: list[list[float]]) -> list[list[float]]:
|
||||
"""
|
||||
A matrix multiplied with its inverse gives the identity matrix.
|
||||
This function finds the inverse of a 2x2 matrix.
|
||||
|
Reference in New Issue
Block a user