guanaqo 1.0.0-alpha.25
Utilities for scientific software
Loading...
Searching...
No Matches
guanaqo::PrintMatrixView< T > Class Template Reference

#include <guanaqo/print.hpp>

Detailed Description

template<class T>
class guanaqo::PrintMatrixView< T >

Definition at line 24 of file print.hpp.

Collaboration diagram for guanaqo::PrintMatrixView< T >:

Public Types

using value_type = T
using index_type = ptrdiff_t
using inner_stride_type = index_type

Public Member Functions

 PrintMatrixView ()=default
template<class U, class I, class S>
 PrintMatrixView (MatrixView< U, I, S, StorageOrder::ColMajor > v) noexcept
template<class U, class I, class S>
 PrintMatrixView (MatrixView< U, I, S, StorageOrder::RowMajor > v) noexcept
template<class U, std::size_t E>
 PrintMatrixView (std::span< U, E > x) noexcept
index_type rows () const noexcept
index_type cols () const noexcept
value_typeoperator() (index_type i, index_type j) const noexcept

Private Member Functions

template<class U, class I, class S>
 PrintMatrixView (MatrixView< U, I, S, StorageOrder::ColMajor > v, bool transposed) noexcept

Private Attributes

MatrixView< T, index_type, index_type, StorageOrder::ColMajorview
bool transposed = false

Member Typedef Documentation

◆ value_type

template<class T>
using guanaqo::PrintMatrixView< T >::value_type = T

Definition at line 26 of file print.hpp.

◆ index_type

template<class T>
using guanaqo::PrintMatrixView< T >::index_type = ptrdiff_t

Definition at line 27 of file print.hpp.

◆ inner_stride_type

template<class T>
using guanaqo::PrintMatrixView< T >::inner_stride_type = index_type

Definition at line 28 of file print.hpp.

Constructor & Destructor Documentation

◆ PrintMatrixView() [1/5]

template<class T>
guanaqo::PrintMatrixView< T >::PrintMatrixView ( )
default
Here is the caller graph for this function:

◆ PrintMatrixView() [2/5]

template<class T>
template<class U, class I, class S>
guanaqo::PrintMatrixView< T >::PrintMatrixView ( MatrixView< U, I, S, StorageOrder::ColMajor > v)
inlinenoexcept

Definition at line 33 of file print.hpp.

Here is the call graph for this function:

◆ PrintMatrixView() [3/5]

template<class T>
template<class U, class I, class S>
guanaqo::PrintMatrixView< T >::PrintMatrixView ( MatrixView< U, I, S, StorageOrder::RowMajor > v)
inlinenoexcept

Definition at line 36 of file print.hpp.

Here is the call graph for this function:

◆ PrintMatrixView() [4/5]

template<class T>
template<class U, std::size_t E>
guanaqo::PrintMatrixView< T >::PrintMatrixView ( std::span< U, E > x)
inlinenoexcept

Definition at line 39 of file print.hpp.

◆ PrintMatrixView() [5/5]

template<class T>
template<class U, class I, class S>
guanaqo::PrintMatrixView< T >::PrintMatrixView ( MatrixView< U, I, S, StorageOrder::ColMajor > v,
bool transposed )
inlineprivatenoexcept

Definition at line 61 of file print.hpp.

Here is the call graph for this function:

Member Function Documentation

◆ rows()

template<class T>
index_type guanaqo::PrintMatrixView< T >::rows ( ) const
inlinenodiscardnoexcept

Definition at line 45 of file print.hpp.

Here is the caller graph for this function:

◆ cols()

template<class T>
index_type guanaqo::PrintMatrixView< T >::cols ( ) const
inlinenodiscardnoexcept

Definition at line 48 of file print.hpp.

Here is the caller graph for this function:

◆ operator()()

template<class T>
value_type & guanaqo::PrintMatrixView< T >::operator() ( index_type i,
index_type j ) const
inlinenodiscardnoexcept

Definition at line 51 of file print.hpp.

Member Data Documentation

◆ view

Definition at line 57 of file print.hpp.

◆ transposed

template<class T>
bool guanaqo::PrintMatrixView< T >::transposed = false
private

Definition at line 58 of file print.hpp.


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