MatrixSlice Class Template Reference
[Vector and Matrix mathematics]

#include <Matrix.hpp>

Inheritance diagram for MatrixSlice:

Inheritance graph
[legend]
Collaboration diagram for MatrixSlice:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class T>
class gpstk::MatrixSlice< T >

An assignable slice of a matrix.

Definition at line 229 of file Matrix.hpp.

Public Member Functions

 MatrixSlice ()
 default constructor
 MatrixSlice (Matrix< T > &mat)
 Makes a slice of the whole matrix.
 MatrixSlice (Matrix< T > &mat, const std::slice &rowSlice, const std::slice &colSlice)
 Makes a partial slice of a matrix.
 MatrixSlice (Matrix< T > &mat, size_t topRow, size_t topCol, size_t numRows, size_t numCols)
 Submatrix slice.
template<class V>
MatrixSliceoperator= (const ConstMatrixBase< T, V > &x)
 Copies from x to (*this).
template<class V>
MatrixSliceoperator= (const ConstVectorBase< T, V > &x)
 Copies from x to (*this).
MatrixSliceoperator= (const std::valarray< T > &x)
 Copies from x to (*this).
MatrixSliceoperator= (const T x)
 Copies from x to (*this).
MatrixSliceoperator= (const T *x)
 Copies from x to (*this).
size_t size () const
 returns the size of this slice
size_t cols () const
 returns the number of columns in the slice
size_t rows () const
 returns the number of rows in the slice
T & operator() (size_t i, size_t j)
 returns the (i,j) element of the slice.
operator() (size_t i, size_t j) const
 returns the (i,j) element of the slice, const version.
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

MatrixSlice  )  [inline]
 

default constructor

Definition at line 233 of file Matrix.hpp.

MatrixSlice Matrix< T > &  mat  )  [inline]
 

Makes a slice of the whole matrix.

Definition at line 238 of file Matrix.hpp.

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

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

Makes a partial slice of a matrix.

Definition at line 246 of file Matrix.hpp.

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

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

Submatrix slice.

Definition at line 255 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 RefMatrixBase< T, MatrixSlice< T > >.

Definition at line 287 of file Matrix.hpp.

size_t colSize  )  const [inline]
 

returns the number of columns in this slice

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

Definition at line 307 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, MatrixSlice< T > >.

Definition at line 309 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, MatrixSlice< T > >.

Definition at line 311 of file Matrix.hpp.

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

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

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

Definition at line 295 of file Matrix.hpp.

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

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

Reimplemented from RefMatrixBase< T, MatrixSlice< T > >.

Definition at line 291 of file Matrix.hpp.

MatrixSlice& operator= const T *  x  )  [inline]
 

Copies from x to (*this).

Definition at line 281 of file Matrix.hpp.

MatrixSlice& operator= const T  x  )  [inline]
 

Copies from x to (*this).

Definition at line 278 of file Matrix.hpp.

MatrixSlice& operator= const std::valarray< T > &  x  )  [inline]
 

Copies from x to (*this).

Definition at line 275 of file Matrix.hpp.

MatrixSlice& operator= const ConstVectorBase< T, V > &  x  )  [inline]
 

Copies from x to (*this).

Definition at line 271 of file Matrix.hpp.

MatrixSlice& operator= const ConstMatrixBase< T, V > &  x  )  [inline]
 

Copies from x to (*this).

Definition at line 266 of file Matrix.hpp.

size_t rows void   )  const [inline]
 

returns the number of rows in the slice

Reimplemented from RefMatrixBase< T, MatrixSlice< T > >.

Definition at line 289 of file Matrix.hpp.

size_t rowSize  )  const [inline]
 

returns the number of rows in this slice

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

Definition at line 301 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, MatrixSlice< T > >.

Definition at line 303 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, MatrixSlice< T > >.

Definition at line 305 of file Matrix.hpp.

size_t size void   )  const [inline]
 

returns the size of this slice

Reimplemented from RefMatrixBase< T, MatrixSlice< T > >.

Definition at line 285 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