File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
src/lapack/backends/armpl Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 18
18
#===============================================================================
19
19
20
20
include_guard ()
21
- set (ARMPL_SEQ armpl_intp64 )
21
+ set (ARMPL_SEQ armpl_int64 )
22
22
set (ARMPL_OMP armpl_int64_mp )
23
23
24
24
include (FindPackageHandleStandardArgs )
Original file line number Diff line number Diff line change @@ -142,7 +142,12 @@ inline constexpr bool is_complex<armpl_doublecomplex_t> = true;
142
142
template <typename T>
143
143
constexpr auto cast_to_int_if_complex (const T& alpha) {
144
144
if constexpr (is_complex<T>) {
145
- return static_cast <std::int64_t >((*((T*)&alpha)));
145
+ // armpl 25.04 uses directly std::complex so most of the ArmEquivalentType gymnastics is redundant
146
+ if constexpr (std::is_same_v<T, std::complex<float >> ||
147
+ std::is_same_v<T, std::complex<double >>)
148
+ return static_cast <std::int64_t >(alpha.real ());
149
+ else
150
+ return static_cast <std::int64_t >((*((T*)&alpha)));
146
151
}
147
152
else {
148
153
return (std::int64_t )alpha;
You can’t perform that action at this time.
0 commit comments