@@ -304,7 +304,8 @@ ssize_t byte_offset_unsafe(const Strides &strides, ssize_t i, Ix... index) {
304
304
return i * strides[Dim] + byte_offset_unsafe<Dim + 1 >(strides, index ...);
305
305
}
306
306
307
- /* * Proxy class providing unsafe, unchecked const access to array data. This is constructed through
307
+ /* *
308
+ * Proxy class providing unsafe, unchecked const access to array data. This is constructed through
308
309
* the `unchecked<T, N>()` method of `array` or the `unchecked<N>()` method of `array_t<T>`. `Dims`
309
310
* will be -1 for dimensions determined at runtime.
310
311
*/
@@ -335,7 +336,8 @@ class unchecked_reference {
335
336
: data_{reinterpret_cast <const unsigned char *>(data)}, shape_{shape}, strides_{strides}, dims_{dims} {}
336
337
337
338
public:
338
- /* * Unchecked const reference access to data at the given indices. For a compile-time known
339
+ /* *
340
+ * Unchecked const reference access to data at the given indices. For a compile-time known
339
341
* number of dimensions, this requires the correct number of arguments; for run-time
340
342
* dimensionality, this is not checked (and so is up to the caller to use safely).
341
343
*/
@@ -344,7 +346,8 @@ class unchecked_reference {
344
346
" Invalid number of indices for unchecked array reference" );
345
347
return *reinterpret_cast <const T *>(data_ + byte_offset_unsafe (strides_, ssize_t (index )...));
346
348
}
347
- /* * Unchecked const reference access to data; this operator only participates if the reference
349
+ /* *
350
+ * Unchecked const reference access to data; this operator only participates if the reference
348
351
* is to a 1-dimensional array. When present, this is exactly equivalent to `obj(index)`.
349
352
*/
350
353
template <ssize_t D = Dims, typename = enable_if_t <D == 1 || Dynamic>>
@@ -392,7 +395,8 @@ class unchecked_mutable_reference : public unchecked_reference<T, Dims> {
392
395
" Invalid number of indices for unchecked array reference" );
393
396
return const_cast <T &>(ConstBase::operator ()(index ...));
394
397
}
395
- /* * Mutable, unchecked access data at the given index; this operator only participates if the
398
+ /* *
399
+ * Mutable, unchecked access data at the given index; this operator only participates if the
396
400
* reference is to a 1-dimensional array (or has runtime dimensions). When present, this is
397
401
* exactly equivalent to `obj(index)`.
398
402
*/
@@ -679,7 +683,8 @@ class array : public buffer {
679
683
return offset_at (index ...) / itemsize ();
680
684
}
681
685
682
- /* * Returns a proxy object that provides access to the array's data without bounds or
686
+ /* *
687
+ * Returns a proxy object that provides access to the array's data without bounds or
683
688
* dimensionality checking. Will throw if the array is missing the `writeable` flag. Use with
684
689
* care: the array must not be destroyed or reshaped for the duration of the returned object,
685
690
* and the caller must take care not to access invalid dimensions or dimension indices.
@@ -691,7 +696,8 @@ class array : public buffer {
691
696
return detail::unchecked_mutable_reference<T, Dims>(mutable_data (), shape (), strides (), ndim ());
692
697
}
693
698
694
- /* * Returns a proxy object that provides const access to the array's data without bounds or
699
+ /* *
700
+ * Returns a proxy object that provides const access to the array's data without bounds or
695
701
* dimensionality checking. Unlike `mutable_unchecked()`, this does not require that the
696
702
* underlying array have the `writable` flag. Use with care: the array must not be destroyed or
697
703
* reshaped for the duration of the returned object, and the caller must take care not to access
@@ -851,7 +857,8 @@ template <typename T, int ExtraFlags = array::forcecast> class array_t : public
851
857
return *(static_cast <T*>(array::mutable_data ()) + byte_offset (ssize_t (index )...) / itemsize ());
852
858
}
853
859
854
- /* * Returns a proxy object that provides access to the array's data without bounds or
860
+ /* *
861
+ * Returns a proxy object that provides access to the array's data without bounds or
855
862
* dimensionality checking. Will throw if the array is missing the `writeable` flag. Use with
856
863
* care: the array must not be destroyed or reshaped for the duration of the returned object,
857
864
* and the caller must take care not to access invalid dimensions or dimension indices.
@@ -860,7 +867,8 @@ template <typename T, int ExtraFlags = array::forcecast> class array_t : public
860
867
return array::mutable_unchecked<T, Dims>();
861
868
}
862
869
863
- /* * Returns a proxy object that provides const access to the array's data without bounds or
870
+ /* *
871
+ * Returns a proxy object that provides const access to the array's data without bounds or
864
872
* dimensionality checking. Unlike `unchecked()`, this does not require that the underlying
865
873
* array have the `writable` flag. Use with care: the array must not be destroyed or reshaped
866
874
* for the duration of the returned object, and the caller must take care not to access invalid
0 commit comments