Anonymous user
Conjugate transpose: Difference between revisions
→{{header|Julia}}
(added Julia example) |
|||
Line 770:
<lang julia>A'</julia>
(similar to Matlab). You can check whether <code>A</code> is Hermitian via the built-in function
<lang julia>ishermitian(A)</
Ignoring the possibility of roundoff errors for floating-point matrices (like most of the examples in the other languages), you can check whether a matrix is normal or unitary by the following functions
<lang julia>isnormal(A) = size(A,1) == size(A,2) && A'*A == A*A'
isunitary(A) = size(A,1) == size(A,2) && A'*A == eye(A)</
=={{header|Mathematica}}==
|