LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
line::MatrixView< T > Class Template Reference

#include <line/util/matrix.h>

Public Member Functions

 MatrixView ()
 MatrixView (T *data, std::size_t rows, std::size_t cols)
 MatrixView (T *data, std::size_t rows, std::size_t cols, std::size_t stride)
std::size_t rows () const
std::size_t cols () const
std::size_t stride () const
bool empty () const
T * data () const
T & operator() (std::size_t i, std::size_t j) const
T & at (std::size_t i, std::size_t j) const

Detailed Description

template<class T>
class line::MatrixView< T >

Definition at line 30 of file matrix.h.

Constructor & Destructor Documentation

◆ MatrixView() [1/3]

template<class T>
line::MatrixView< T >::MatrixView ( )
inline

Definition at line 32 of file matrix.h.

Referenced by line::Matrix< Complex >::view(), and line::Matrix< Complex >::view().

◆ MatrixView() [2/3]

template<class T>
line::MatrixView< T >::MatrixView ( T * data,
std::size_t rows,
std::size_t cols )
inline

Definition at line 33 of file matrix.h.

References cols(), data(), and rows().

◆ MatrixView() [3/3]

template<class T>
line::MatrixView< T >::MatrixView ( T * data,
std::size_t rows,
std::size_t cols,
std::size_t stride )
inline

Definition at line 35 of file matrix.h.

References cols(), data(), rows(), and stride().

Member Function Documentation

◆ at()

template<class T>
T & line::MatrixView< T >::at ( std::size_t i,
std::size_t j ) const
inline

Definition at line 45 of file matrix.h.

References line::InputError::InputError().

◆ cols()

template<class T>
std::size_t line::MatrixView< T >::cols ( ) const
inline

Definition at line 39 of file matrix.h.

Referenced by line::matrix_from(), MatrixView(), and MatrixView().

◆ data()

template<class T>
T * line::MatrixView< T >::data ( ) const
inline

Definition at line 42 of file matrix.h.

Referenced by MatrixView(), and MatrixView().

◆ empty()

template<class T>
bool line::MatrixView< T >::empty ( ) const
inline

Definition at line 41 of file matrix.h.

◆ operator()()

template<class T>
T & line::MatrixView< T >::operator() ( std::size_t i,
std::size_t j ) const
inline

Definition at line 44 of file matrix.h.

◆ rows()

template<class T>
std::size_t line::MatrixView< T >::rows ( ) const
inline

Definition at line 38 of file matrix.h.

Referenced by line::matrix_from(), MatrixView(), and MatrixView().

◆ stride()

template<class T>
std::size_t line::MatrixView< T >::stride ( ) const
inline

Definition at line 40 of file matrix.h.

Referenced by MatrixView().


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