@@ -131,18 +131,18 @@ inline constexpr bool is_operatable_view_v =
131
131
132
132
// Traits for binary operations
133
133
template <typename T1, typename T2, typename Enable = void >
134
- struct have_same_precision : std::false_type {};
134
+ struct have_same_base_floating_point_type : std::false_type {};
135
135
136
136
template <typename T1, typename T2>
137
- struct have_same_precision <
137
+ struct have_same_base_floating_point_type <
138
138
T1, T2,
139
139
std::enable_if_t <!Kokkos::is_view_v<T1> && !Kokkos::is_view_v<T2> &&
140
140
std::is_same_v<base_floating_point_type<T1>,
141
141
base_floating_point_type<T2>>>>
142
142
: std::true_type {};
143
143
144
144
template <typename InViewType, typename OutViewType>
145
- struct have_same_precision <
145
+ struct have_same_base_floating_point_type <
146
146
InViewType, OutViewType,
147
147
std::enable_if_t <
148
148
Kokkos::is_view_v<InViewType> && Kokkos::is_view_v<OutViewType> &&
@@ -152,12 +152,12 @@ struct have_same_precision<
152
152
typename OutViewType::non_const_value_type>>>>
153
153
: std::true_type {};
154
154
155
- // / \brief Helper to check if two value have the same base precision type.
155
+ // / \brief Helper to check if two value have the same base floating point type.
156
156
// / When applied to Kokkos::View, then check if values of views have the same
157
- // / base precision type.
157
+ // / base floating point type.
158
158
template <typename T1, typename T2>
159
- inline constexpr bool have_same_precision_v =
160
- have_same_precision <T1, T2>::value;
159
+ inline constexpr bool have_same_base_floating_point_type_v =
160
+ have_same_base_floating_point_type <T1, T2>::value;
161
161
162
162
template <typename InViewType, typename OutViewType, typename Enable = void >
163
163
struct have_same_layout : std::false_type {};
@@ -199,12 +199,12 @@ struct are_operatable_views : std::false_type {};
199
199
template <typename ExecutionSpace, typename InViewType, typename OutViewType>
200
200
struct are_operatable_views <
201
201
ExecutionSpace, InViewType, OutViewType,
202
- std::enable_if_t <is_operatable_view_v<ExecutionSpace, InViewType> &&
203
- is_operatable_view_v<ExecutionSpace, OutViewType > &&
204
- have_same_precision_v<InViewType , OutViewType> &&
205
- have_same_layout_v <InViewType, OutViewType> &&
206
- have_same_rank_v <InViewType, OutViewType>>>
207
- : std::true_type {};
202
+ std::enable_if_t <
203
+ is_operatable_view_v<ExecutionSpace, InViewType > &&
204
+ is_operatable_view_v<ExecutionSpace , OutViewType> &&
205
+ have_same_base_floating_point_type_v <InViewType, OutViewType> &&
206
+ have_same_layout_v <InViewType, OutViewType> &&
207
+ have_same_rank_v<InViewType, OutViewType>>> : std::true_type {};
208
208
209
209
// / \brief Helper to check if Views are acceptable View for Kokkos-FFT and
210
210
// / memory space are accessible from the ExecutionSpace.
0 commit comments