@@ -244,7 +244,6 @@ subview_1(const ViewLR<ST***,Props...>& v,
244
244
// Since we are keeping the first dimension, the stride is unchanged.
245
245
auto vm = tmp.impl_map ();
246
246
vm.m_impl_offset .m_stride = v.impl_map ().stride_0 ();
247
- auto test = Unmanaged<ViewLR<ST**,Props...>>(v.impl_track (),vm);
248
247
return Unmanaged<ViewLR<ST**,Props...>>(
249
248
v.impl_track (),vm);
250
249
}
@@ -318,7 +317,7 @@ subview_1(const ViewLR<ST******,Props...>& v,
318
317
// ================ Multi-sliced Subviews ======================= //
319
318
// e.g., instead of a single-entry slice like v(:, 42, :), we slice over a range
320
319
// of values, as in v(:, 27:42, :)
321
- // this means that the subview has the same rank as the "parent" view
320
+ // this means that the subview has the same rank as the source view
322
321
323
322
// --- Rank1 multi-slice --- //
324
323
template <typename ST, typename ... Props>
@@ -332,7 +331,7 @@ subview(const ViewLR<ST*, Props...>& v,
332
331
// NOTE: the final comparison is originally int <= long unsigned int
333
332
// the cast silences a warning, but may be unnecessary
334
333
assert (kp0.first >= 0 && kp0.first < kp0.second
335
- && ( unsigned int ) kp0.second <= v.extent (idim));
334
+ && kp0.second <= v.extent_int (idim));
336
335
return Unmanaged<ViewLS<ST*,Props...>>(Kokkos::subview (v, kp0));
337
336
338
337
}
@@ -349,7 +348,7 @@ subview(const ViewLR<ST**, Props...>& v,
349
348
// NOTE: the final comparison is originally int <= long unsigned int
350
349
// the cast silences a warning, but may be unnecessary
351
350
assert (kp0.first >= 0 && kp0.first < kp0.second
352
- && ( unsigned int ) kp0.second <= v.extent (idim));
351
+ && kp0.second <= v.extent_int (idim));
353
352
if (idim == 0 ) {
354
353
return Unmanaged<ViewLS<ST**,Props...>>(Kokkos::subview (v, kp0, Kokkos::ALL));
355
354
} else {
@@ -370,7 +369,7 @@ subview(const ViewLR<ST***, Props...>& v,
370
369
// NOTE: the final comparison is originally int <= long unsigned int
371
370
// the cast silences a warning, but may be unnecessary
372
371
assert (kp0.first >= 0 && kp0.first < kp0.second
373
- && ( unsigned int ) kp0.second <= v.extent (idim));
372
+ && kp0.second <= v.extent_int (idim));
374
373
if (idim == 0 ) {
375
374
return Unmanaged<ViewLS<ST***,Props...>>(
376
375
Kokkos::subview (v, kp0, Kokkos::ALL, Kokkos::ALL));
@@ -396,7 +395,7 @@ subview(const ViewLR<ST****, Props...>& v,
396
395
// NOTE: the final comparison is originally int <= long unsigned int
397
396
// the cast silences a warning, but may be unnecessary
398
397
assert (kp0.first >= 0 && kp0.first < kp0.second
399
- && ( unsigned int ) kp0.second <= v.extent (idim));
398
+ && kp0.second <= v.extent_int (idim));
400
399
if (idim == 0 ) {
401
400
return Unmanaged<ViewLS<ST****,Props...>>(
402
401
Kokkos::subview (v, kp0, Kokkos::ALL, Kokkos::ALL, Kokkos::ALL));
@@ -425,7 +424,7 @@ subview(const ViewLR<ST*****, Props...>& v,
425
424
// NOTE: the final comparison is originally int <= long unsigned int
426
425
// the cast silences a warning, but may be unnecessary
427
426
assert (kp0.first >= 0 && kp0.first < kp0.second
428
- && ( unsigned int ) kp0.second <= v.extent (idim));
427
+ && kp0.second <= v.extent_int (idim));
429
428
if (idim == 0 ) {
430
429
return Unmanaged<ViewLS<ST*****,Props...>>(
431
430
Kokkos::subview (v, kp0, Kokkos::ALL, Kokkos::ALL, Kokkos::ALL, Kokkos::ALL));
@@ -457,7 +456,7 @@ subview(const ViewLR<ST******, Props...>& v,
457
456
// NOTE: the final comparison is originally int <= long unsigned int
458
457
// the cast silences a warning, but may be unnecessary
459
458
assert (kp0.first >= 0 && kp0.first < kp0.second
460
- && ( unsigned int ) kp0.second <= v.extent (idim));
459
+ && kp0.second <= v.extent_int (idim));
461
460
if (idim == 0 ) {
462
461
return Unmanaged<ViewLS<ST******,Props...>>(
463
462
Kokkos::subview (v, kp0, Kokkos::ALL, Kokkos::ALL, Kokkos::ALL,
0 commit comments