namespace std {
class slice {
public:
slice();
slice(size_t, size_t, size_t);
size_t start() const;
size_t size() const;
size_t stride() const;
friend bool operator==(const slice& x, const slice& y);
};
}
The
slice
class represents a BLAS-like slice from an array
. Such a slice is specified by a starting index, a length, and a
stride
.