<T>LAPACK 0.1.1
C++ Template Linear Algebra PACKage
Loading...
Searching...
No Matches
SliceableVector Interface Reference

Concept for a vector that can be sliced into subvectors. More...

#include <concepts.hpp>

Detailed Description

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:

  • View of entries i to j, excluding j, a vector v of length n, where 0 <= i <= j <= n, using the function 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.
Template Parameters
vector_tVector type.

The documentation for this interface was generated from the following file: