Home
last modified time | relevance | path

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

/third_party/mindspore/mindspore-src/source/mindspore/core/base/
Dcomplex_storage.h27 struct alignas(sizeof(T) * kComplexValueUnit) ComplexStorage { struct
31 ComplexStorage() = default; argument
37 ComplexStorage &operator=(const ComplexStorage<T> &other) noexcept = default; argument
38 ComplexStorage &operator=(ComplexStorage<T> &&other) noexcept = default; argument
40 inline constexpr ComplexStorage(const T &real, const T &imag = T()) : real_(real), imag_(imag) {} in real_() argument
42 …inline explicit constexpr ComplexStorage(const float16 &real) : real_(static_cast<T>(real)), imag_… in ComplexStorage() argument
43 …inline explicit constexpr ComplexStorage(const bfloat16 &real) : real_(static_cast<T>(real)), imag… in ComplexStorage() function
46 …explicit ComplexStorage(const std::enable_if_t<std::is_same<U, float>::value, ComplexStorage<doubl… in ComplexStorage() function
50 …explicit ComplexStorage(const std::enable_if_t<std::is_same<U, double>::value, ComplexStorage<floa… in ComplexStorage() function
69 inline bool operator==(const ComplexStorage<T> &lhs, const ComplexStorage<T> &rhs) { argument