DoxigAlpha

conj

Returns the complex conjugate of z.

Function parameters

Parameters

#
z:anytype

Returns the complex conjugate of z.

Functions

#
conj
Returns the complex conjugate of z.

Source

Implementation

#
pub fn conj(z: anytype) Complex(@TypeOf(z.re, z.im)) {
    const T = @TypeOf(z.re, z.im);
    return Complex(T).init(z.re, -z.im);
}