Home
last modified time | relevance | path

Searched defs:ComplexStorage (Results 1 – 1 of 1) sorted by relevance

/third_party/mindspore/mindspore/core/base/
Dcomplex_storage.h24 struct alignas(sizeof(T) * 2) ComplexStorage { struct
28 ComplexStorage() = default; argument
34 ComplexStorage &operator=(const ComplexStorage<T> &other) noexcept = default; argument
35 ComplexStorage &operator=(ComplexStorage<T> &&other) noexcept = default; argument
37 inline constexpr ComplexStorage(const T &real, const T &imag = T()) : real_(real), imag_(imag) {} in real_() argument
39 …inline explicit constexpr ComplexStorage(const float16 &real) : real_(static_cast<T>(real)), imag_… in ComplexStorage() argument
42 …explicit ComplexStorage(const std::enable_if_t<std::is_same<U, float>::value, ComplexStorage<doubl… in ComplexStorage() function
46 …explicit ComplexStorage(const std::enable_if_t<std::is_same<U, double>::value, ComplexStorage<floa… in ComplexStorage() function
64 inline bool operator==(const ComplexStorage<T> &lhs, const ComplexStorage<T> &rhs) { argument