# ctranspose

ctranspose(A)

The conjugate transposition operator (').

## Examples

1. Conjugate transpose of a matrix:

julia> A = [1+2im 3+4im; 5+6im 7+8im];
julia> B = ctranspose(A)
1-2im  5-6im
3-4im  7-8im

This example computes the conjugate transpose of matrix A using the ctranspose function and stores it in matrix B.

2. Conjugate transpose of a vector:

julia> v = [1+2im, 3+4im, 5+6im];
julia> w = ctranspose(v)
1-2im  3-4im  5-6im

It computes the conjugate transpose of the vector v using ctranspose and assigns the result to vector w.

3. Conjugate transpose of a scalar:
julia> x = 1+2im;
julia> y = ctranspose(x)
1-2im

It calculates the conjugate transpose of the scalar complex number x and assigns it to y.

Common mistake example:

julia> M = [1 2 3; 4 5 6];
julia> T = ctranspose(M)
ERROR: MethodError: no method matching ctranspose(::Array{Int64,2})

In this example, the ctranspose function is applied to a non-complex matrix M. The ctranspose function is specifically designed for complex numbers and matrices. Make sure to use it with appropriate complex inputs.