You can conjugate transpose a matrix by using the '
operator. That is
the entry in the
i
th column and the j
th row will be
the complex conjugate of the entry in the
j
th column and the i
th row of the original matrix.
For example:
[1,2,3]*[4,5,6]'
We transpose the second vector to make matrix multiplication possible.
If you just want to transpose a matrix without conjugating it, you would
use the .'
operator. For example:
[1,2,3]*[4,5,6i].'
Σημειώστε ότι ο κανονικός ανάστροφος, δηλαδή ο τελεστής .'
, είναι πολύ γρηγορότερος και δεν θα δημιουργήσει ένα νέο αντίγραφο του πίνακα στη μνήμη. Η αναστροφή του συζυγή δεν δημιουργεί ένα νέο αντίγραφο δυστυχώς. Συνιστάται να χρησιμοποιείτε πάντα τον τελεστή .'
όταν δουλεύετε με πραγματικούς πίνακες και διανύσματα.