Public Member Functions | Private Attributes | List of all members
gnsstk::ConstMatrixRowSlice< T > Class Template Reference

Detailed Description

template<class T>
class gnsstk::ConstMatrixRowSlice< T >

an unmodifiable row slice of a matrix.

Definition at line 58 of file Matrix.hpp.

#include <Matrix.hpp>

Public Member Functions

size_t cols () const
 returns the number of columns in the slice More...
 
size_t colSize () const
 returns the number of columns in this slice More...
 
size_t colStart () const
 returns the starting row in the base matrix of this slice More...
 
size_t colStride () const
 returns the number of elements between the i'th and i+1'th row More...
 
 ConstMatrixRowSlice ()
 default constructor More...
 
 ConstMatrixRowSlice (const Matrix< T > &mat, size_t row)
 makes a const row slice from the matrix More...
 
 ConstMatrixRowSlice (const Matrix< T > &mat, size_t row, const std::slice &s)
 makes a const row slice from the matrix, slicing that row by s. More...
 
operator() (size_t i) const
 returns the i'th element of the slice More...
 
operator() (size_t i, size_t j) const
 returns the (i,j) element of the slice More...
 
operator[] (size_t i) const
 returns the i'th element of the slice More...
 
size_t rows () const
 returns the number of rows in the slice More...
 
size_t rowSize () const
 returns the number of rows in this slice More...
 
size_t rowStart () const
 returns the starting row in the base matrix of this slice More...
 
size_t rowStride () const
 returns the number of elements between the i'th and i+1'th row More...
 
size_t size () const
 returns the overall size of the slice More...
 

Private Attributes

std::slice cSlice
 the slice of the row's columns More...
 
const Matrix< T > * m
 the matrix this slice refers to More...
 
size_t r
 the row of the slice More...
 

Constructor & Destructor Documentation

◆ ConstMatrixRowSlice() [1/3]

template<class T >
gnsstk::ConstMatrixRowSlice< T >::ConstMatrixRowSlice ( )
inline

default constructor

Definition at line 669 of file Matrix.hpp.

◆ ConstMatrixRowSlice() [2/3]

template<class T >
gnsstk::ConstMatrixRowSlice< T >::ConstMatrixRowSlice ( const Matrix< T > &  mat,
size_t  row 
)
inline

makes a const row slice from the matrix

Definition at line 673 of file Matrix.hpp.

◆ ConstMatrixRowSlice() [3/3]

template<class T >
gnsstk::ConstMatrixRowSlice< T >::ConstMatrixRowSlice ( const Matrix< T > &  mat,
size_t  row,
const std::slice &  s 
)
inline

makes a const row slice from the matrix, slicing that row by s.

Definition at line 678 of file Matrix.hpp.

Member Function Documentation

◆ cols()

template<class T >
size_t gnsstk::ConstMatrixRowSlice< T >::cols ( ) const
inline

returns the number of columns in the slice

Definition at line 700 of file Matrix.hpp.

◆ colSize()

template<class T >
size_t gnsstk::ConstMatrixRowSlice< T >::colSize ( ) const
inline

returns the number of columns in this slice

Definition at line 711 of file Matrix.hpp.

◆ colStart()

template<class T >
size_t gnsstk::ConstMatrixRowSlice< T >::colStart ( ) const
inline

returns the starting row in the base matrix of this slice

Definition at line 713 of file Matrix.hpp.

◆ colStride()

template<class T >
size_t gnsstk::ConstMatrixRowSlice< T >::colStride ( ) const
inline

returns the number of elements between the i'th and i+1'th row

Definition at line 715 of file Matrix.hpp.

◆ operator()() [1/2]

template<class T >
T gnsstk::ConstMatrixRowSlice< T >::operator() ( size_t  i) const
inline

returns the i'th element of the slice

Definition at line 690 of file Matrix.hpp.

◆ operator()() [2/2]

template<class T >
T gnsstk::ConstMatrixRowSlice< T >::operator() ( size_t  i,
size_t  j 
) const
inline

returns the (i,j) element of the slice

Definition at line 694 of file Matrix.hpp.

◆ operator[]()

template<class T >
T gnsstk::ConstMatrixRowSlice< T >::operator[] ( size_t  i) const
inline

returns the i'th element of the slice

Definition at line 687 of file Matrix.hpp.

◆ rows()

template<class T >
size_t gnsstk::ConstMatrixRowSlice< T >::rows ( ) const
inline

returns the number of rows in the slice

Definition at line 698 of file Matrix.hpp.

◆ rowSize()

template<class T >
size_t gnsstk::ConstMatrixRowSlice< T >::rowSize ( ) const
inline

returns the number of rows in this slice

Definition at line 705 of file Matrix.hpp.

◆ rowStart()

template<class T >
size_t gnsstk::ConstMatrixRowSlice< T >::rowStart ( ) const
inline

returns the starting row in the base matrix of this slice

Definition at line 707 of file Matrix.hpp.

◆ rowStride()

template<class T >
size_t gnsstk::ConstMatrixRowSlice< T >::rowStride ( ) const
inline

returns the number of elements between the i'th and i+1'th row

Definition at line 709 of file Matrix.hpp.

◆ size()

template<class T >
size_t gnsstk::ConstMatrixRowSlice< T >::size ( ) const
inline

returns the overall size of the slice

Definition at line 702 of file Matrix.hpp.

Member Data Documentation

◆ cSlice

template<class T >
std::slice gnsstk::ConstMatrixRowSlice< T >::cSlice
private

the slice of the row's columns

Definition at line 722 of file Matrix.hpp.

◆ m

template<class T >
const Matrix<T>* gnsstk::ConstMatrixRowSlice< T >::m
private

the matrix this slice refers to

Definition at line 718 of file Matrix.hpp.

◆ r

template<class T >
size_t gnsstk::ConstMatrixRowSlice< T >::r
private

the row of the slice

Definition at line 720 of file Matrix.hpp.


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


gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:44