parent
6474a64f96
commit
8a7399df48
@ -1,2 +1,21 @@
|
||||
# matrices
|
||||
|
||||
This is a matrix class.
|
||||
```
|
||||
g++ -o matrix matrix.cpp
|
||||
./matrix
|
||||
```
|
||||
The output:
|
||||
```
|
||||
The matrix m:
|
||||
| 7 | 5 | i |
|
||||
| 0 | 2 | 0 |
|
||||
| -i | 0 | 4 |
|
||||
The matrix m's transpose:
|
||||
| 7 | 0 | -i |
|
||||
| 5 | 2 | 0 |
|
||||
| i | 0 | 4 |
|
||||
The matrix m is not hermitian, here is the hermitian conjugate:
|
||||
| 7 | 0 | i |
|
||||
| 5 | 2 | 0 |
|
||||
| -i | 0 | 4 |
|
||||
```
|
Loading…
Reference in new issue