Files
cppdraft_translate/cppdraft/class/slice/overview.md
2025-10-25 03:02:53 +03:00

1.6 KiB

[class.slice.overview]

29 Numerics library [numerics]

29.6 Numeric arrays [numarray]

29.6.4 Class slice [class.slice]

29.6.4.1 Overview [class.slice.overview]

🔗

namespace std {class slice {public: slice(); slice(size_t, size_t, size_t); slice(const slice&);

size_t start() const; size_t size() const; size_t stride() const; friend bool operator==(const slice& x, const slice& y); };}

1

#

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.252

252)252)

BLAS stands forBasic Linear Algebra Subprograms.

C++ programs can instantiate this class.

See, for example, Dongarra, Du Croz, Duff, and Hammerling:A set of Level 3 Basic Linear Algebra Subprograms; Technical Report MCS-P1-0888, Argonne National Laboratory (USA), Mathematics and Computer Science Division, August, 1988.