11#ifndef TLAPACK_LEGACY_VECTOR_HH
12#define TLAPACK_LEGACY_VECTOR_HH
24 constexpr operator int()
const {
return 1; }
37 class idx_t = std::size_t,
40 std::enable_if_t<(
D == Direction::Forward) || (
D == Direction::Backward),
49 constexpr const T& operator[](idx_t i)
const noexcept
53 return (direction == Direction::Forward) ? *(
ptr + (i *
inc))
57 constexpr T& operator[](idx_t i)
noexcept
61 return (direction == Direction::Forward) ? *(
ptr + (i *
inc))
Direction
Definition types.hpp:352
#define tlapack_check_false(cond)
Throw an error if cond is true.
Definition exceptionHandling.hpp:113
Concept for vectors that can be converted to a legacy vector.
typename traits::real_type_traits< Types..., int >::type real_type
The common real type of the list of types.
Definition scalar_type_traits.hpp:113
Legacy vector.
Definition LegacyVector.hpp:42
T * ptr
Pointer to array in memory.
Definition LegacyVector.hpp:44
int_t inc
Memory increment.
Definition LegacyVector.hpp:45
idx_t n
Size.
Definition LegacyVector.hpp:43
Auxiliary data type to vector increments.
Definition LegacyVector.hpp:23