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

Non-owning transposed view: swaps row/col access. More...

#include <transposed_view.hpp>

Public Types

using value_type = typename Matrix::value_type
using size_type = typename Matrix::size_type
using const_reference = typename Matrix::const_reference
using reference = const_reference

Public Member Functions

 transposed_view (const Matrix &m)
value_type operator() (size_type r, size_type c) const
size_type num_rows () const
size_type num_cols () const
size_type size () const
const Matrix & base () const
 Access underlying matrix (needed for O(nnz) transposed sparse matvec).

Detailed Description

template<typename Matrix>
class mtl::mat::view::transposed_view< Matrix >

Non-owning transposed view: swaps row/col access.

Member Typedef Documentation

◆ const_reference

template<typename Matrix>
using mtl::mat::view::transposed_view< Matrix >::const_reference = typename Matrix::const_reference

◆ reference

template<typename Matrix>
using mtl::mat::view::transposed_view< Matrix >::reference = const_reference

◆ size_type

template<typename Matrix>
using mtl::mat::view::transposed_view< Matrix >::size_type = typename Matrix::size_type

◆ value_type

template<typename Matrix>
using mtl::mat::view::transposed_view< Matrix >::value_type = typename Matrix::value_type

Constructor & Destructor Documentation

◆ transposed_view()

template<typename Matrix>
mtl::mat::view::transposed_view< Matrix >::transposed_view ( const Matrix & m)
inlineexplicit

Member Function Documentation

◆ base()

template<typename Matrix>
const Matrix & mtl::mat::view::transposed_view< Matrix >::base ( ) const
inline

Access underlying matrix (needed for O(nnz) transposed sparse matvec).

◆ num_cols()

template<typename Matrix>
size_type mtl::mat::view::transposed_view< Matrix >::num_cols ( ) const
inline

◆ num_rows()

template<typename Matrix>
size_type mtl::mat::view::transposed_view< Matrix >::num_rows ( ) const
inline

◆ operator()()

template<typename Matrix>
value_type mtl::mat::view::transposed_view< Matrix >::operator() ( size_type r,
size_type c ) const
inline

◆ size()

template<typename Matrix>
size_type mtl::mat::view::transposed_view< Matrix >::size ( ) const
inline

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