10#ifndef TLAPACK_LEGACY_BANDED_HH
11#define TLAPACK_LEGACY_BANDED_HH
29template <
typename T,
class idx_t = std::
size_t>
42 constexpr const T&
operator()(idx_t i, idx_t j)
const noexcept
50 return ptr[(
ku + i) + j * (
ku + kl)];
53 constexpr T&
operator()(idx_t i, idx_t j)
noexcept
61 return ptr[(
ku + i) + j * (
ku + kl)];
64 constexpr LegacyBandedMatrix(idx_t m, idx_t n, idx_t kl, idx_t
ku, T*
ptr)
#define tlapack_check(cond)
Throw an error if cond is false.
Definition exceptionHandling.hpp:98
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 banded matrix.
Definition LegacyBandedMatrix.hpp:30
constexpr const T & operator()(idx_t i, idx_t j) const noexcept
Access A(i,j) = ptr[ (ku+(i-j)) + j*(ku+kl+1) ].
Definition LegacyBandedMatrix.hpp:42
idx_t ku
Sizes.
Definition LegacyBandedMatrix.hpp:31
T * ptr
Pointer to array in memory.
Definition LegacyBandedMatrix.hpp:32