Shortcuts

Template Struct complex< Half >

Page Contents

Struct Documentation

template<>
struct complex<Half>

Public Functions

complex() = default
inline explicit complex(const Half &real, const Half &imag)
inline complex(const c10::complex<float> &value)
inline operator c10::complex<float>() const
inline constexpr Half real() const
inline constexpr Half imag() const
inline complex<Half> &operator+=(const complex<Half> &other)
inline complex<Half> &operator-=(const complex<Half> &other)
inline complex<Half> &operator*=(const complex<Half> &other)

Public Members

Half real_
Half imag_

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources