You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Micke Nordin 8a7399df48
Update 'README.md'
2 years ago
LICENSE Initial commit 2 years ago
README.md Update 'README.md' 2 years ago
matrix.cpp Add conjugation and transposition 2 years ago
matrix.hpp Add conjugation and transposition 2 years ago

README.md

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 |