59template <
typename index_t>
74 index_t column_index{};
89 template <
typename simd_index_t>
132 template <std::
integral column_index_t, std::
integral row_index_t>
136 this->column_count = column_count.get();
137 this->row_count = row_count.get();
153 return iterator{column_count, row_count};
171template <
typename index_t>
181 index_t column_id{0};
221 this->column_id = simd::fill<index_t>(std::move(column_id));
223 this->column_id = std::move(column_id);
236 return views::iota_simd<index_t>(
size_type{}, row_count)
241 return std::views::iota(
size_type{}, row_count)
256 column_id = column_id + simd::fill<index_t>(1);
288 return !(lhs == rhs);
Provides algorithms to modify seqan3::simd::simd_type.
Provides seqan3::aligned_allocator.
The iterator for the seqan3::detail::coordinate_matrix.
Definition coordinate_matrix.hpp:174
friend bool operator!=(iterator const &lhs, iterator const &rhs)
Tests whether lhs != rhs.
Definition coordinate_matrix.hpp:286
auto operator*() const
Access the pointed-to matrix coordinate column.
Definition coordinate_matrix.hpp:232
decltype(std::declval< iota_view_t >()|std::views::transform(convert_to_matrix_coordinate{index_t{} })) value_type
The value type.
Definition coordinate_matrix.hpp:191
lazy_conditional_t< simd_index< index_t >, lazy< iota_simd_view, index_t >, decltype(std::views::iota(size_type{}, size_type{}))> iota_view_t
The iota view type which depends on the index type.
Definition coordinate_matrix.hpp:179
~iterator()=default
Defaulted.
value_type reference
The reference type.
Definition coordinate_matrix.hpp:193
iterator(iterator const &)=default
Defaulted.
iterator & operator=(iterator const &)=default
Defaulted.
iterator(iterator &&)=default
Defaulted.
index_t column_id
The currently represented column index.
Definition coordinate_matrix.hpp:181
iterator(size_type column_id, size_type row_count) noexcept
Constructs and initialises the iterator with the current column index and the row index marking the e...
Definition coordinate_matrix.hpp:218
iterator()=default
Defaulted.
iterator & operator++()
Increments the iterator to the next column.
Definition coordinate_matrix.hpp:252
iterator & operator=(iterator &&)=default
Defaulted.
void pointer
The pointer type.
Definition coordinate_matrix.hpp:195
iterator operator++(int)
Increments the iterator to the next column and returns the iterator pointing to the previous column.
Definition coordinate_matrix.hpp:264
friend bool operator==(iterator const &lhs, iterator const &rhs)
Tests whether lhs == rhs.
Definition coordinate_matrix.hpp:277
A matrix over coordinates.
Definition coordinate_matrix.hpp:62
void resize(column_index_type< column_index_t > const column_count, row_index_type< row_index_t > const row_count) noexcept
Resets the coordinate matrix with the given end column index and end row index representing the new d...
Definition coordinate_matrix.hpp:133
lazy_conditional_t< simd_concept< index_t >, lazy< lazy_scalar_type_t, index_t >, index_t > size_type
The internal size type which depends on index_t being a simd vector or a scalar type.
Definition coordinate_matrix.hpp:93
coordinate_matrix(coordinate_matrix const &)=default
Defaulted.
iterator end() const noexcept
Returns the iterator pointing to the end column of the matrix.
Definition coordinate_matrix.hpp:151
coordinate_matrix(coordinate_matrix &&)=default
Defaulted.
coordinate_matrix()=default
Defaulted.
~coordinate_matrix()=default
Defaulted.
coordinate_matrix & operator=(coordinate_matrix &&)=default
Defaulted.
typename simd_traits< simd_index_t >::scalar_type lazy_scalar_type_t
Type alias for the scalar type defined by the seqan3::simd::simd_traits type.
Definition coordinate_matrix.hpp:90
coordinate_matrix & operator=(coordinate_matrix const &)=default
Defaulted.
iterator begin() const noexcept
Returns the iterator pointing to the first column of the matrix.
Definition coordinate_matrix.hpp:145
Refines the seqan3::simd::simd_concept requiring the underlying scalar type to model std::integral.
Provides seqan3::detail::counted_simd_iterator and seqan3::views::iota_simd.
Provides lazy template instantiation traits.
Provides seqan3::detail::matrix_index, seqan3::detail::matrix_coordinate and associated strong types.
The internal SeqAn3 namespace.
Definition aligned_sequence_concept.hpp:26
Provides seqan3::simd::simd_traits.
A strong type for designated initialisation of the column index of a matrix.
Definition matrix_coordinate.hpp:29
A function object that converts a column index and a row index to a seqan3::detail::matrix_coordinate...
Definition coordinate_matrix.hpp:72
auto operator()(index_t const row_index) noexcept
The conversion operator.
Definition coordinate_matrix.hpp:82
An empty type whose only purpose is to hold an uninstantiated template plus its arguments.
Definition lazy_conditional.hpp:30
A representation of a location or offset within a two-dimensional matrix.
Definition matrix_coordinate.hpp:87
A strong type for designated initialisation of the row index of a matrix.
Definition matrix_coordinate.hpp:58
seqan3::simd::simd_traits is the trait class that provides uniform interface to the properties of sim...
Definition simd_traits.hpp:38
Provides type traits for working with templates.
Provides seqan3::simd::simd_concept.