@@ -48,8 +48,8 @@ namespace matx {
4848template <typename OperatorType, bool ConvertType = true >
4949struct RandomOperatorIterator {
5050 using self_type = RandomOperatorIterator<OperatorType, ConvertType>;
51- using value_type = typename std::conditional_t <ConvertType, detail::convert_matx_type_t <typename OperatorType::value_type>, typename OperatorType::value_type>;
52- // using stride_type = std::conditional_t<is_tensor_view_v<OperatorType>, typename OperatorType::desc_type::stride_type,
51+ using value_type = typename cuda:: std::conditional_t <ConvertType, detail::convert_matx_type_t <typename OperatorType::value_type>, typename OperatorType::value_type>;
52+ // using stride_type = cuda:: std::conditional_t<is_tensor_view_v<OperatorType>, typename OperatorType::desc_type::stride_type,
5353 // index_t>;
5454 using stride_type = index_t ;
5555 using pointer = value_type*;
@@ -66,7 +66,7 @@ struct RandomOperatorIterator {
6666 __MATX_INLINE__ __MATX_HOST__ __MATX_DEVICE__ RandomOperatorIterator (OperatorType &&t, stride_type offset) : t_(t), offset_(offset) {}
6767
6868 template <typename T = OperatorType>
69- requires (!std::is_same_v<T, OperatorBaseType>)
69+ requires (!cuda:: std::is_same_v<T, OperatorBaseType>)
7070 __MATX_INLINE__ __MATX_HOST__ __MATX_DEVICE__ RandomOperatorIterator (const OperatorBaseType &t, stride_type offset) : t_(t), offset_(offset) {}
7171
7272 template <typename T = OperatorType>
@@ -193,8 +193,8 @@ __MATX_INLINE__ __MATX_HOST__ __MATX_DEVICE__ index_t operator-(const RandomOper
193193template <typename OperatorType, bool ConvertType = true >
194194struct RandomOperatorOutputIterator {
195195 using self_type = RandomOperatorOutputIterator<OperatorType, ConvertType>;
196- using value_type = typename std::conditional_t <ConvertType, detail::convert_matx_type_t <typename OperatorType::value_type>, typename OperatorType::value_type>;
197- // using stride_type = std::conditional_t<is_tensor_view_v<OperatorType>, typename OperatorType::desc_type::stride_type,
196+ using value_type = typename cuda:: std::conditional_t <ConvertType, detail::convert_matx_type_t <typename OperatorType::value_type>, typename OperatorType::value_type>;
197+ // using stride_type = cuda:: std::conditional_t<is_tensor_view_v<OperatorType>, typename OperatorType::desc_type::stride_type,
198198 // index_t>;
199199 using stride_type = index_t ;
200200 using pointer = value_type*;
@@ -211,11 +211,11 @@ struct RandomOperatorOutputIterator {
211211 __MATX_INLINE__ __MATX_HOST__ __MATX_DEVICE__ RandomOperatorOutputIterator (OperatorType &&t, stride_type offset) : t_(t), offset_(offset) {}
212212
213213 template <typename T = OperatorType>
214- requires (!std::is_same_v<T, OperatorBaseType>)
214+ requires (!cuda:: std::is_same_v<T, OperatorBaseType>)
215215 __MATX_INLINE__ __MATX_HOST__ __MATX_DEVICE__ RandomOperatorOutputIterator (const OperatorBaseType &t, stride_type offset) : t_(t), offset_(offset) {}
216216
217217 template <typename T = OperatorType>
218- requires (!std::is_same_v<T, OperatorBaseType>)
218+ requires (!cuda:: std::is_same_v<T, OperatorBaseType>)
219219 __MATX_INLINE__ __MATX_HOST__ __MATX_DEVICE__ RandomOperatorOutputIterator (OperatorBaseType &&t, stride_type offset) : t_(t), offset_(offset) {}
220220
221221 [[nodiscard]] __MATX_INLINE__ __MATX_HOST__ __MATX_DEVICE__ reference operator *()
@@ -338,10 +338,10 @@ template <typename OperatorType, bool ConvertType = true>
338338struct RandomOperatorThrustIterator {
339339 using self_type = RandomOperatorThrustIterator<OperatorType, ConvertType>;
340340 using const_strip_type = remove_cvref_t <typename OperatorType::value_type>;
341- using value_type = typename std::conditional_t <ConvertType,
341+ using value_type = typename cuda:: std::conditional_t <ConvertType,
342342 detail::convert_matx_type_t <const_strip_type>,
343343 const_strip_type>;
344- // using stride_type = std::conditional_t<is_tensor_view_v<OperatorType>, typename OperatorType::desc_type::stride_type,
344+ // using stride_type = cuda:: std::conditional_t<is_tensor_view_v<OperatorType>, typename OperatorType::desc_type::stride_type,
345345 // index_t>;
346346 using stride_type = index_t ;
347347 using pointer = cuda::std::remove_const_t <value_type>*;
@@ -359,11 +359,11 @@ struct RandomOperatorThrustIterator {
359359 __MATX_INLINE__ __MATX_HOST__ __MATX_DEVICE__ RandomOperatorThrustIterator (OperatorType &&t, stride_type offset) : t_(t), offset_(offset) {}
360360
361361 template <typename T = OperatorType>
362- requires (!std::is_same_v<T, OperatorBaseType>)
362+ requires (!cuda:: std::is_same_v<T, OperatorBaseType>)
363363 __MATX_INLINE__ __MATX_HOST__ __MATX_DEVICE__ RandomOperatorThrustIterator (const OperatorBaseType &t, stride_type offset) : t_(t), offset_(offset) {}
364364
365365 template <typename T = OperatorType>
366- requires (!std::is_same_v<T, OperatorBaseType>)
366+ requires (!cuda:: std::is_same_v<T, OperatorBaseType>)
367367 __MATX_INLINE__ __MATX_HOST__ __MATX_DEVICE__ RandomOperatorThrustIterator (OperatorBaseType &&t, stride_type offset) : t_(t), offset_(offset) {}
368368
369369 [[nodiscard]] __MATX_INLINE__ __MATX_HOST__ __MATX_DEVICE__ reference operator *() const
@@ -463,7 +463,7 @@ template <typename OperatorType>
463463struct BeginOffset {
464464 using self_type = BeginOffset<OperatorType>;
465465 using value_type = index_t ;
466- // using stride_type = std::conditional_t<is_tensor_view_v<OperatorType>, typename OperatorType::desc_type::stride_type,
466+ // using stride_type = cuda:: std::conditional_t<is_tensor_view_v<OperatorType>, typename OperatorType::desc_type::stride_type,
467467 // index_t>;
468468 using stride_type = index_t ;
469469 using pointer = value_type*;
@@ -522,7 +522,7 @@ template <typename OperatorType>
522522struct EndOffset {
523523 using self_type = EndOffset<OperatorType>;
524524 using value_type = index_t ;
525- // using stride_type = std::conditional_t<is_tensor_view_v<OperatorType>, typename OperatorType::desc_type::stride_type,
525+ // using stride_type = cuda:: std::conditional_t<is_tensor_view_v<OperatorType>, typename OperatorType::desc_type::stride_type,
526526 // index_t>;
527527 using stride_type = index_t ;
528528 using pointer = value_type*;
0 commit comments