ConstMatrixRowSlice Class Template Reference
[Vector and Matrix mathematics]

#include <Matrix.hpp>

Inheritance diagram for ConstMatrixRowSlice:

Inheritance graph
[legend]
Collaboration diagram for ConstMatrixRowSlice:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class T>
class gpstk::ConstMatrixRowSlice< T >

an unmodifiable row slice of a matrix.

Definition at line 645 of file Matrix.hpp.

Public Member Functions

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


Constructor & Destructor Documentation

ConstMatrixRowSlice  )  [inline]
 

default constructor

Definition at line 649 of file Matrix.hpp.

ConstMatrixRowSlice const Matrix< T > &  mat,
size_t  row
[inline]
 

makes a const row slice from the matrix

Definition at line 653 of file Matrix.hpp.

References Matrix::cols(), and Matrix::rows().

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 658 of file Matrix.hpp.

References Matrix::cols(), and Matrix::rows().


Member Function Documentation

size_t cols void   )  const [inline]
 

returns the number of columns in the slice

Reimplemented from ConstMatrixBase< T, ConstMatrixRowSlice< T > >.

Definition at line 680 of file Matrix.hpp.

size_t colSize  )  const [inline]
 

returns the number of columns in this slice

Reimplemented from MatrixSliceBase< T, ConstMatrixRowSlice< T > >.

Definition at line 691 of file Matrix.hpp.

References ConstMatrixBase::size().

size_t colStart  )  const [inline]
 

returns the starting row in the base matrix of this slice

Reimplemented from MatrixSliceBase< T, ConstMatrixRowSlice< T > >.

Definition at line 693 of file Matrix.hpp.

size_t colStride  )  const [inline]
 

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

Reimplemented from MatrixSliceBase< T, ConstMatrixRowSlice< T > >.

Definition at line 695 of file Matrix.hpp.

T operator() size_t  i,
size_t  j
const [inline]
 

returns the (i,j) element of the slice

Reimplemented from ConstMatrixBase< T, ConstMatrixRowSlice< T > >.

Definition at line 674 of file Matrix.hpp.

T operator() size_t  i  )  const [inline]
 

returns the i'th element of the slice

Definition at line 670 of file Matrix.hpp.

T operator[] size_t  i  )  const [inline]
 

returns the i'th element of the slice

Definition at line 667 of file Matrix.hpp.

size_t rows void   )  const [inline]
 

returns the number of rows in the slice

Reimplemented from ConstMatrixBase< T, ConstMatrixRowSlice< T > >.

Definition at line 678 of file Matrix.hpp.

size_t rowSize  )  const [inline]
 

returns the number of rows in this slice

Reimplemented from MatrixSliceBase< T, ConstMatrixRowSlice< T > >.

Definition at line 685 of file Matrix.hpp.

size_t rowStart  )  const [inline]
 

returns the starting row in the base matrix of this slice

Reimplemented from MatrixSliceBase< T, ConstMatrixRowSlice< T > >.

Definition at line 687 of file Matrix.hpp.

size_t rowStride  )  const [inline]
 

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

Reimplemented from MatrixSliceBase< T, ConstMatrixRowSlice< T > >.

Definition at line 689 of file Matrix.hpp.

size_t size void   )  const [inline]
 

returns the overall size of the slice

Reimplemented from ConstMatrixBase< T, ConstMatrixRowSlice< T > >.

Definition at line 682 of file Matrix.hpp.


The documentation for this class was generated from the following file:
Generated on Wed May 22 03:31:56 2013 for GPS ToolKit Software Library by  doxygen 1.3.9.1