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

Concept for vectors. More...

#include <concepts.hpp>

Detailed Description

Concept for vectors.

A vector is a one-dimensional array of elements. The indexes and sizes of a vector are representable by an integral type idx_t. The following operations must be available:

  • Entry access using vector_t::operator[](idx_t). Entry i of a vector v is accessed using v[i].
  • Number of entries using size(const vector_t&). This function must be callable from the namespace tlapack.

Optionally, the vector type can also implement:

  • tlapack::traits::layout_trait<vector_t,int>, with a member value that satisfies the concept tlapack::concepts::Layout.
  • tlapack::traits::matrix_type_traits<vector_t,vector_t,int>, with a member type that satisfies the concept tlapack::concepts::Matrix.
  • tlapack::traits::vector_type_traits<vector_t,vector_t,int>, with a member type that satisfies the concept tlapack::concepts::Vector.
Template Parameters
vector_tVector type.

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