41template <
typename score_t>
48 "The score type must be either an arithmetic type or a simd vector type.");
59 using typename range_base_t::alignment_column_type;
110 template <std::ranges::forward_range first_sequence_t, std::ranges::forward_range second_sequence_t>
112 second_sequence_t && second,
113 score_t
const initial_value = score_t{})
125 return alignment_column_type{
131 template <std::random_access_iterator iter_t>
134 return {std::get<0>(*host_iter),
136 std::get<1>(*host_iter),
137 std::get<1>(*host_iter),
142 template <std::random_access_iterator iter_t>
150 template <std::random_access_iterator iter_t>
158 template <std::random_access_iterator iter_t>
Provides seqan3::detail::alignment_matrix_column_major_range_base.
Provides seqan3::detail::alignment_score_matrix_one_column_base.
Provides seqan3::detail::alignment_score_matrix_proxy.
Provides a range interface for alignment matrices.
Definition: alignment_matrix_column_major_range_base.hpp:63
std::default_sentinel_t sentinel
The type of sentinel.
Definition: alignment_matrix_column_major_range_base.hpp:480
iterator_type iterator
The type of the iterator.
Definition: alignment_matrix_column_major_range_base.hpp:478
An alignment score matrix storing only a single column for the computation.
Definition: alignment_score_matrix_one_column.hpp:45
alignment_score_matrix_proxy< score_t > value_type
The proxy type of an alignment matrix.
Definition: alignment_score_matrix_one_column.hpp:70
constexpr value_type make_proxy(iter_t host_iter) noexcept
Creates the proxy value returned when dereferencing the alignment-column-iterator.
Definition: alignment_score_matrix_one_column.hpp:132
size_t size_type
The size type.
Definition: alignment_score_matrix_one_column_base.hpp:51
constexpr alignment_score_matrix_one_column & operator=(alignment_score_matrix_one_column const &)=default
Defaulted.
constexpr alignment_score_matrix_one_column(first_sequence_t &&first, second_sequence_t &&second, score_t const initial_value=score_t{})
Construction from two ranges.
Definition: alignment_score_matrix_one_column.hpp:111
constexpr alignment_score_matrix_one_column(alignment_score_matrix_one_column &&)=default
Defaulted.
constexpr void on_column_iterator_creation(iter_t host_iter) noexcept
Allows additional initialisations when calling begin on an alignment-column.
Definition: alignment_score_matrix_one_column.hpp:143
constexpr void after_column_iterator_increment(iter_t host_iter) noexcept
Allows to perform additional steps after incrementing the alignment-column-iterator.
Definition: alignment_score_matrix_one_column.hpp:159
constexpr alignment_score_matrix_one_column()=default
Defaulted.
typename range_base_t::iterator iterator
The type of the iterator.
Definition: alignment_score_matrix_one_column.hpp:74
friend range_base_t
Befriend the range base class.
Definition: alignment_score_matrix_one_column.hpp:55
constexpr void before_column_iterator_increment(iter_t host_iter) noexcept
Allows to perform additional steps before incrementing the alignment-column-iterator.
Definition: alignment_score_matrix_one_column.hpp:151
typename range_base_t::sentinel sentinel
The type of sentinel.
Definition: alignment_score_matrix_one_column.hpp:76
constexpr alignment_column_type initialise_column(size_type const column_index) noexcept
Returns the current alignment-column at the given column_index.
Definition: alignment_score_matrix_one_column.hpp:123
std::tuple< underlying_type, underlying_type > element_type
The actual element type.
Definition: alignment_score_matrix_one_column_base.hpp:45
constexpr alignment_score_matrix_one_column(alignment_score_matrix_one_column const &)=default
Defaulted.
constexpr alignment_score_matrix_one_column & operator=(alignment_score_matrix_one_column &&)=default
Defaulted.
~alignment_score_matrix_one_column()=default
Defaulted.
A type that satisfies std::is_arithmetic_v<t>.
The generic simd concept.
The internal SeqAn3 namespace.
Definition: aligned_sequence_concept.hpp:29
A base class for alignment score matrices using only one column to compute the matrix.
Definition: alignment_score_matrix_one_column_base.hpp:37
std::array< underlying_type, 3 > cache
Internal cache for the last diagonal and vertical value during the alignment computation.
Definition: alignment_score_matrix_one_column_base.hpp:57
pool_type pool
The linearised memory pool storing only one column of the matrix.
Definition: alignment_score_matrix_one_column_base.hpp:55
size_t size_type
The size type.
Definition: alignment_score_matrix_one_column_base.hpp:51
score_t underlying_type
The underlying type of the scores.
Definition: alignment_score_matrix_one_column_base.hpp:43
size_type num_rows
The number of num_rows.
Definition: alignment_score_matrix_one_column_base.hpp:61
std::tuple< underlying_type, underlying_type > element_type
The actual element type.
Definition: alignment_score_matrix_one_column_base.hpp:45
size_type num_cols
The number of columns.
Definition: alignment_score_matrix_one_column_base.hpp:59
A proxy type for a unified access to the score matrix during alignment computation.
Definition: alignment_score_matrix_proxy.hpp:36
Provides concepts that do not have equivalents in C++20.
Provides seqan3::simd::simd_concept.