ConstMatrixSlice Class Template Reference
[Vector and Matrix mathematics]

#include <Matrix.hpp>

Inheritance diagram for ConstMatrixSlice:

Inheritance graph
[legend]
Collaboration diagram for ConstMatrixSlice:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class T>
class gpstk::ConstMatrixSlice< T >

An unmodifiable matrix slice.

Definition at line 324 of file Matrix.hpp.

Public Member Functions

 ConstMatrixSlice (void)
 default constructor
 ConstMatrixSlice (const Matrix< T > &mat)
 makes a const slice of the whole matrix
 ConstMatrixSlice (const Matrix< T > &mat, const std::slice &rowSlice, const std::slice &colSlice)
 makes a slice given std::slices for rows and columns
 ConstMatrixSlice (const Matrix< T > &mat, size_t topRow, size_t topCol, size_t numRows, size_t numCols)
 submatrix slice
size_t size () const
 the size of the slice
size_t cols () const
 the number of columns in the slice
size_t rows () const
 the number of rows in the slice
operator() (size_t i, size_t j) const
 the (i,j) element of the slice, const.
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

ConstMatrixSlice void   )  [inline]
 

default constructor

Definition at line 328 of file Matrix.hpp.

ConstMatrixSlice const Matrix< T > &  mat  )  [inline]
 

makes a const slice of the whole matrix

Definition at line 333 of file Matrix.hpp.

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

ConstMatrixSlice const Matrix< T > &  mat,
const std::slice &  rowSlice,
const std::slice &  colSlice
[inline]
 

makes a slice given std::slices for rows and columns

Definition at line 341 of file Matrix.hpp.

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

ConstMatrixSlice const Matrix< T > &  mat,
size_t  topRow,
size_t  topCol,
size_t  numRows,
size_t  numCols
[inline]
 

submatrix slice

Definition at line 350 of file Matrix.hpp.

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


Member Function Documentation

size_t cols void   )  const [inline]
 

the number of columns in the slice

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

Definition at line 362 of file Matrix.hpp.

size_t colSize  )  const [inline]
 

returns the number of columns in this slice

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

Definition at line 377 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, ConstMatrixSlice< T > >.

Definition at line 379 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, ConstMatrixSlice< T > >.

Definition at line 381 of file Matrix.hpp.

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

the (i,j) element of the slice, const.

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

Definition at line 366 of file Matrix.hpp.

size_t rows void   )  const [inline]
 

the number of rows in the slice

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

Definition at line 364 of file Matrix.hpp.

size_t rowSize  )  const [inline]
 

returns the number of rows in this slice

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

Definition at line 371 of file Matrix.hpp.

References ConstMatrixBase::size().

size_t rowStart  )  const [inline]
 

returns the starting row in the base matrix of this slice

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

Definition at line 373 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, ConstMatrixSlice< T > >.

Definition at line 375 of file Matrix.hpp.

size_t size void   )  const [inline]
 

the size of the slice

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

Definition at line 360 of file Matrix.hpp.


The documentation for this class was generated from the following file:
Generated on Thu Feb 9 03:31:38 2012 for GPS ToolKit Software Library by  doxygen 1.3.9.1