MatrixColSlice Class Template Reference
[Vector and Matrix mathematics]

#include <Matrix.hpp>

Inheritance diagram for MatrixColSlice:

Inheritance graph
[legend]
Collaboration diagram for MatrixColSlice:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class T>
class gpstk::MatrixColSlice< T >

an assignable single column slice of a matrix

Definition at line 395 of file Matrix.hpp.

Public Member Functions

 MatrixColSlice ()
 default constructor
 MatrixColSlice (Matrix< T > &mat, size_t col)
 makes a slice of the column col from matrix mat.
 MatrixColSlice (Matrix< T > &mat, size_t col, const std::slice &s)
 makes a slice of the column from the matrix using s to further slice the column.
template<class V>
MatrixColSliceoperator= (const ConstMatrixBase< T, V > &x)
 assigns this column to x
template<class V>
MatrixColSliceoperator= (const ConstVectorBase< T, V > &x)
 assigns this column to x
MatrixColSliceoperator= (const std::valarray< T > &x)
 assigns this column to x
MatrixColSliceoperator= (const T x)
 assigns this column to x
MatrixColSliceoperator= (const T *x)
 assigns this column to x
T & operator[] (size_t i)
 returns the i'th element of the column, non-const
T & operator() (size_t i)
 returns the i'th element of the column, non-const
operator[] (size_t i) const
 returns the i'th element of the column, const
operator() (size_t i) const
 returns the i'th element of the column, const
T & operator() (size_t i, size_t j)
 returns the (i,j) element, non-const
operator() (size_t i, size_t j) const
 returns the (i,j) element, non-const
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 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

MatrixColSlice  )  [inline]
 

default constructor

Definition at line 399 of file Matrix.hpp.

MatrixColSlice Matrix< T > &  mat,
size_t  col
[inline]
 

makes a slice of the column col from matrix mat.

Definition at line 401 of file Matrix.hpp.

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

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

makes a slice of the column from the matrix using s to further slice the column.

Definition at line 408 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, MatrixColSlice< T > >.

Definition at line 457 of file Matrix.hpp.

size_t colSize  )  const [inline]
 

returns the number of columns in this slice

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

Definition at line 468 of file Matrix.hpp.

size_t colStart  )  const [inline]
 

returns the starting row in the base matrix of this slice

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

Definition at line 470 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, MatrixColSlice< T > >.

Definition at line 472 of file Matrix.hpp.

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

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

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

Definition at line 451 of file Matrix.hpp.

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

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

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

Definition at line 448 of file Matrix.hpp.

T operator() size_t  i  )  const [inline]
 

returns the i'th element of the column, const

Definition at line 444 of file Matrix.hpp.

T& operator() size_t  i  )  [inline]
 

returns the i'th element of the column, non-const

Definition at line 438 of file Matrix.hpp.

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

assigns this column to x

Definition at line 431 of file Matrix.hpp.

MatrixColSlice& operator= const T  x  )  [inline]
 

assigns this column to x

Definition at line 428 of file Matrix.hpp.

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

assigns this column to x

Definition at line 425 of file Matrix.hpp.

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

assigns this column to x

Definition at line 422 of file Matrix.hpp.

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

assigns this column to x

Definition at line 417 of file Matrix.hpp.

T operator[] size_t  i  )  const [inline]
 

returns the i'th element of the column, const

Definition at line 441 of file Matrix.hpp.

T& operator[] size_t  i  )  [inline]
 

returns the i'th element of the column, non-const

Definition at line 435 of file Matrix.hpp.

size_t rows void   )  const [inline]
 

returns the number of rows in the slice

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

Definition at line 455 of file Matrix.hpp.

size_t rowSize  )  const [inline]
 

returns the number of rows in this slice

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

Definition at line 462 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, MatrixColSlice< T > >.

Definition at line 464 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, MatrixColSlice< T > >.

Definition at line 466 of file Matrix.hpp.

size_t size void   )  const [inline]
 

returns the size of the slice

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

Definition at line 459 of file Matrix.hpp.


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