MatrixRowSlice Class Template Reference
[Vector and Matrix mathematics]

#include <Matrix.hpp>

Inheritance diagram for MatrixRowSlice:

Inheritance graph
[legend]
Collaboration diagram for MatrixRowSlice:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class T>
class gpstk::MatrixRowSlice< T >

an assignable single row slice of a matrix

Definition at line 554 of file Matrix.hpp.

Public Member Functions

 MatrixRowSlice ()
 default constructor
 MatrixRowSlice (Matrix< T > &mat, size_t row)
 makes a slice of row row from the matrix.
 MatrixRowSlice (Matrix< T > &mat, size_t row, const std::slice &s)
 makes a slice of row row from the matrix, slicing it by s.
template<class V>
MatrixRowSliceoperator= (const ConstMatrixBase< T, V > &x)
 assigns this row to x.
template<class V>
MatrixRowSliceoperator= (const ConstVectorBase< T, V > &x)
 assigns this row to x.
MatrixRowSliceoperator= (const std::valarray< T > &x)
 assigns this row to x.
MatrixRowSliceoperator= (const T x)
 assigns this row to x.
MatrixRowSliceoperator= (const T *x)
 assigns this row to x.
T & operator[] (size_t j)
 returns the j'th element of the slice, non-const
T & operator() (size_t j)
 returns the j'th element of the slice, non-const
operator[] (size_t j) const
 returns the j'th element of the slice, const
operator() (size_t j) const
 returns the j'th element of the slice, const
T & operator() (size_t i, size_t j)
 returns the (i,j) element of the slice, non-const
operator() (size_t i, size_t j) const
 returns the (i,j) element of the slice, const
size_t rows () const
 returns the number of rows in the row slice
size_t cols () const
 returns the number of columns in the row slice
size_t size () const
 returns the 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

MatrixRowSlice  )  [inline]
 

default constructor

Definition at line 558 of file Matrix.hpp.

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

makes a slice of row row from the matrix.

Definition at line 562 of file Matrix.hpp.

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

MatrixRowSlice Matrix< T > &  mat,
size_t  row,
const std::slice &  s
[inline]
 

makes a slice of row row from the matrix, slicing it by s.

Definition at line 567 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 row slice

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

Definition at line 615 of file Matrix.hpp.

size_t colSize  )  const [inline]
 

returns the number of columns in this slice

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

Definition at line 626 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, MatrixRowSlice< T > >.

Definition at line 628 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, MatrixRowSlice< T > >.

Definition at line 630 of file Matrix.hpp.

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

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

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

Definition at line 609 of file Matrix.hpp.

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

returns the (i,j) element of the slice, non-const

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

Definition at line 606 of file Matrix.hpp.

T operator() size_t  j  )  const [inline]
 

returns the j'th element of the slice, const

Definition at line 603 of file Matrix.hpp.

T& operator() size_t  j  )  [inline]
 

returns the j'th element of the slice, non-const

Definition at line 597 of file Matrix.hpp.

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

assigns this row to x.

Definition at line 590 of file Matrix.hpp.

MatrixRowSlice& operator= const T  x  )  [inline]
 

assigns this row to x.

Definition at line 587 of file Matrix.hpp.

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

assigns this row to x.

Definition at line 584 of file Matrix.hpp.

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

assigns this row to x.

Definition at line 581 of file Matrix.hpp.

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

assigns this row to x.

Definition at line 577 of file Matrix.hpp.

T operator[] size_t  j  )  const [inline]
 

returns the j'th element of the slice, const

Definition at line 600 of file Matrix.hpp.

T& operator[] size_t  j  )  [inline]
 

returns the j'th element of the slice, non-const

Definition at line 594 of file Matrix.hpp.

size_t rows void   )  const [inline]
 

returns the number of rows in the row slice

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

Definition at line 613 of file Matrix.hpp.

size_t rowSize  )  const [inline]
 

returns the number of rows in this slice

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

Definition at line 620 of file Matrix.hpp.

size_t rowStart  )  const [inline]
 

returns the starting row in the base matrix of this slice

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

Definition at line 622 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, MatrixRowSlice< T > >.

Definition at line 624 of file Matrix.hpp.

size_t size void   )  const [inline]
 

returns the size of the slice

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

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