11#ifndef TLAPACK_TEST_TESTUPLOMATRIX_HH
12#define TLAPACK_TEST_TESTUPLOMATRIX_HH
33 class idx_t = std::size_t,
45 constexpr const T& operator()(idx_t i, idx_t j)
const noexcept
56 constexpr T& operator()(idx_t i, idx_t j)
noexcept
71 template <
typename T,
class idx_t, Uplo uplo, Layout L>
75 template <
typename T,
class idx_t, Uplo uplo, Layout L>
79 template <
typename T,
class idx_t, Uplo uplo, Layout L>
83 template <
class T,
class idx_t, Uplo uplo, Layout L>
90#define isSlice(SliceSpec) !std::is_convertible<SliceSpec, idx_t>::value
107 B.modifier =
A.modifier + cols.first - rows.first;
113template <
typename T,
class idx_t, Uplo uplo, Layout layout,
class SliceSpec>
119 B.modifier =
A.modifier - slice.first;
123template <
typename T,
class idx_t, Uplo uplo, Layout layout,
class SliceSpec>
129 B.modifier =
A.modifier + slice.first;
133#define isSlice(SliceSpec) !std::is_convertible<SliceSpec, idx_t>::value
150 B.modifier =
A.modifier + cols.first - rows.first;
156template <
typename T,
class idx_t, Uplo uplo, Layout layout,
class SliceSpec>
162 B.modifier =
A.modifier - slice.first;
166template <
typename T,
class idx_t, Uplo uplo, Layout layout,
class SliceSpec>
172 B.modifier =
A.modifier + slice.first;
Concept for matrices that can be converted to a legacy matrix.
Concept for types that represent tlapack::Uplo.
Sort the numbers in D in increasing order (if ID = 'I') or in decreasing order (if ID = 'D' ).
Definition arrayTraits.hpp:15
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
Uplo
Definition types.hpp:50
@ Upper
0 <= i <= j, 0 <= j <= n.
@ Lower
0 <= i <= m, 0 <= j <= i.
constexpr Layout layout
Layout of a matrix or vector.
Definition arrayTraits.hpp:232
Layout
Definition types.hpp:29
@ ColMajor
Column-major layout.
Legacy matrix.
Definition LegacyMatrix.hpp:34
TestUploMatrix class.
Definition TestUploMatrix.hpp:36
int modifier
Modifier to the access region. Enables slicing of the matrix.
Definition TestUploMatrix.hpp:37
Functor for data creation.
Definition arrayTraits.hpp:89
Complex type traits for the list of types Types.
Definition scalar_type_traits.hpp:145
Trait to determine the layout of a given data structure.
Definition arrayTraits.hpp:75
Real type traits for the list of types Types.
Definition scalar_type_traits.hpp:71