MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
mtl::recursion::recursator< Matrix > Class Template Reference

Wraps a matrix and provides quad-tree subdivision for block-recursive algorithms. More...

#include <matrix_recursator.hpp>

Public Types

using size_type = typename Matrix::size_type
using value_type = typename Matrix::value_type

Public Member Functions

 recursator (Matrix &m)
 Wrap the entire matrix.
 recursator (std::remove_const_t< Matrix > &&)=delete
 A recursator holds a pointer: recursator<const M> bound a temporary through Matrix& = const M&, and dangled at the end of the statement (issue 877).
recursator north_west () const
 North-west quadrant (top-left).
recursator north_east () const
 North-east quadrant (top-right).
recursator south_west () const
 South-west quadrant (bottom-left).
recursator south_east () const
 South-east quadrant (bottom-right).
decltype(auto) operator() (size_type r, size_type c) const
 Access element (r, c) relative to this sub-region.
decltype(auto) operator() (size_type r, size_type c)
Matrix & get_matrix ()
 Get the underlying matrix reference.
const Matrix & get_matrix () const
size_type num_rows () const
size_type num_cols () const
size_type size () const
bool is_empty () const
size_type row_offset () const
size_type col_offset () const

Detailed Description

template<typename Matrix>
class mtl::recursion::recursator< Matrix >

Wraps a matrix and provides quad-tree subdivision for block-recursive algorithms.

Lightweight value type – copy freely.

Member Typedef Documentation

◆ size_type

template<typename Matrix>
using mtl::recursion::recursator< Matrix >::size_type = typename Matrix::size_type

◆ value_type

template<typename Matrix>
using mtl::recursion::recursator< Matrix >::value_type = typename Matrix::value_type

Constructor & Destructor Documentation

◆ recursator() [1/2]

template<typename Matrix>
mtl::recursion::recursator< Matrix >::recursator ( Matrix & m)
inlineexplicit

Wrap the entire matrix.

◆ recursator() [2/2]

template<typename Matrix>
mtl::recursion::recursator< Matrix >::recursator ( std::remove_const_t< Matrix > && )
explicitdelete

A recursator holds a pointer: recursator<const M> bound a temporary through Matrix& = const M&, and dangled at the end of the statement (issue 877).

Member Function Documentation

◆ col_offset()

template<typename Matrix>
size_type mtl::recursion::recursator< Matrix >::col_offset ( ) const
inline

◆ get_matrix() [1/2]

template<typename Matrix>
Matrix & mtl::recursion::recursator< Matrix >::get_matrix ( )
inline

Get the underlying matrix reference.

◆ get_matrix() [2/2]

template<typename Matrix>
const Matrix & mtl::recursion::recursator< Matrix >::get_matrix ( ) const
inline

◆ is_empty()

template<typename Matrix>
bool mtl::recursion::recursator< Matrix >::is_empty ( ) const
inline

◆ north_east()

template<typename Matrix>
recursator mtl::recursion::recursator< Matrix >::north_east ( ) const
inline

North-east quadrant (top-right).

◆ north_west()

template<typename Matrix>
recursator mtl::recursion::recursator< Matrix >::north_west ( ) const
inline

North-west quadrant (top-left).

◆ num_cols()

template<typename Matrix>
size_type mtl::recursion::recursator< Matrix >::num_cols ( ) const
inline

◆ num_rows()

template<typename Matrix>
size_type mtl::recursion::recursator< Matrix >::num_rows ( ) const
inline

◆ operator()() [1/2]

template<typename Matrix>
decltype(auto) mtl::recursion::recursator< Matrix >::operator() ( size_type r,
size_type c )
inline

◆ operator()() [2/2]

template<typename Matrix>
decltype(auto) mtl::recursion::recursator< Matrix >::operator() ( size_type r,
size_type c ) const
inline

Access element (r, c) relative to this sub-region.

◆ row_offset()

template<typename Matrix>
size_type mtl::recursion::recursator< Matrix >::row_offset ( ) const
inline

◆ size()

template<typename Matrix>
size_type mtl::recursion::recursator< Matrix >::size ( ) const
inline

◆ south_east()

template<typename Matrix>
recursator mtl::recursion::recursator< Matrix >::south_east ( ) const
inline

South-east quadrant (bottom-right).

◆ south_west()

template<typename Matrix>
recursator mtl::recursion::recursator< Matrix >::south_west ( ) const
inline

South-west quadrant (bottom-left).


The documentation for this class was generated from the following file: