From f1491d5010a0d85748ffe42cf6e1b1a97de605a1 Mon Sep 17 00:00:00 2001 From: Didictateur <105631786+Didictateur@users.noreply.github.com> Date: Sun, 22 Oct 2023 16:48:51 +0200 Subject: [PATCH] Update Matrix.md --- docs/Matrix.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/docs/Matrix.md b/docs/Matrix.md index e69de29..527dc04 100644 --- a/docs/Matrix.md +++ b/docs/Matrix.md @@ -0,0 +1,29 @@ +## Matrix + +Matrix(l: list[list[complexe]]) + +- l: representation of the matrix in a list + +### Attributes + +- ```__m: list[list[complexe]]``` + + the values contained in the matrix. + +- ```__size: tuple[int, int]``` + + the size of the matrix + +### Methodes + +- __init__(self, l: list[list[complex]]=[]) -> None + + initiates the matrix + +- __mul__(self, __value: "Matrix") -> Matrix + + defines the natural multiplication as the Koeneger product for matrices + +- __apply(self, x: list[complex]) -> list[complex] + + takes a list to represent a vector in a colonne, and return the proctuct of the matrix by this vector