Parameters
- start
- Index of the first element in the generalized slice.
The index of the first element in a valarray is 0, not 1.
size_t is an unsigned integral type. - lengths
- valarray object with each element representing the number of elements in each dimension of the slice.
size_t is an unsigned integral type. - strides
- valarray object with each element representing the separation between the elements (dimension size).
size_t is an unsigned integral type. - gslc
- gslice object (copy constructor).
Example
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
|
Output:
gslice: 1 3 5 8 10 12 |
See also
| gslice::start | Return start of gslice (public member function) |
| gslice::size | Return sizes of gslice (public member function) |
| gslice::stride | Return strides of gslice (public member function) |
