Update Matrix.md
This commit is contained in:
parent
fc862e008c
commit
df74053e41
1 changed files with 26 additions and 4 deletions
|
|
@ -16,21 +16,43 @@ Matrix(l: list[list[complexe]])
|
|||
|
||||
### Methode
|
||||
|
||||
- ```__init__(self, l: list[list[complex]]=[]) -> None```
|
||||
- ```__init__(l: list[list[complex]]=[]) -> None```
|
||||
|
||||
initiates the matrix
|
||||
|
||||
- ```__mul__(self, __value: "Matrix") -> Matrix```
|
||||
- ```__mul__(__value: "Matrix") -> Matrix```
|
||||
|
||||
defines the natural multiplication as the Koeneger product for matrices
|
||||
|
||||
- ```__apply(self, x: list[complex]) -> list[complex]```
|
||||
- ```__apply(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
|
||||
|
||||
- ```__str__(self) -> str```
|
||||
- ```__str__() -> str```
|
||||
|
||||
returns a string representation of the matrix
|
||||
|
||||
|
||||
### Staticmethods
|
||||
|
||||
- ```I() -> Matrix```
|
||||
|
||||
returns the matrix
|
||||
|
||||
```math
|
||||
\begin{pmatrix}
|
||||
1 & 0\\
|
||||
0 & 1
|
||||
\end{pmatrix}
|
||||
```
|
||||
|
||||
- ```H() -> Matrix```
|
||||
|
||||
returns the matrix
|
||||
|
||||
```math
|
||||
\begin{pmatrix}
|
||||
\frac1\sqrt 2 & \frac1\sqrt 2\\
|
||||
\frax1\sqrt 2 & -\frac1\sqrt 2
|
||||
\end{pmatrix}
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in a new issue