<T>LAPACK 0.1.2
C++ Template Linear Algebra PACKage
|
Concept for a vector that can be sliced into subvectors. More...
#include <concepts.hpp>
Concept for a vector that can be sliced into subvectors.
A sliceable vector is a tlapack::concepts::Vector that can be sliced into subvectors. A subvector is a light-weight view of the original vector. That means that the value of the entries should not be copied. It also means that any changes in the subvector will automatically reflect a change in the original vector, and vice-versa. Routines in <T>LAPACK use the following operations to slice a vector:
slice(vector_t&, pair_t&&)
, where pair_t
is a std::pair
of two types satisfying tlapack::concepts::Index. The call slice(v, pair{i,j})
returns a vector of length (j-i) whose type satisfy tlapack::concepts::Vector. This function must be callable from the namespace tlapack
.vector_t | Vector type. |