Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

base::matrixrange< T > Class Template Reference

Collaboration diagram for base::matrixrange< T >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef T value_type
typedef value_typereference
typedef const value_typeconst_reference
typedef matrix< T >::size_type size_type

Public Member Functions

 matrixrange (matrix< T > &m, const range< size_type > &rr, const range< size_type > &cr)
 matrixrange (const matrixrange< T > &mr)
 ~matrixrange ()
size_type rows () const
size_type cols () const
size_type size1 () const
size_type size2 () const
bool operator== (const matrixrange &mr) const
bool operator!= (const matrixrange &mr) const
bool equals (const matrixrange &mr, value_type eps=value_type(consts::epsilon)) const
const_reference operator() (size_type r, size_type c) const
reference operator() (size_type r, size_type c)
matrixrangeoperator= (const matrixrange &mr)
matrixrangeoperator= (const matrix< T > &sm)
void reset (const matrixrange &mr)
void reset (const matrix< T > &m)
matrixrangeoperator+= (const matrixrange &mr)
matrixrangeoperator+= (const matrix< T > &sm)
matrixrangeoperator-= (const matrixrange &mr)
matrixrangeoperator-= (const matrix< T > &sm)
matrixrangenegate ()
matrixrangetranspose ()
 operator const_matrixrange () const
 operator matrix () const

Protected Member Functions

 matrixrange ()
reference _m (size_type r, size_type c)
const_reference _m (size_type r, size_type c) const

Protected Attributes

matrix< T > & m
range< size_typerr
range< size_typecr

template<typename T>
class base::matrixrange< T >


Member Typedef Documentation

template<typename T>
typedef const value_type& base::matrixrange< T >::const_reference
 

Definition at line 739 of file Matrix.

template<typename T>
typedef value_type& base::matrixrange< T >::reference
 

Definition at line 738 of file Matrix.

template<typename T>
typedef matrix<T>::size_type base::matrixrange< T >::size_type
 

Definition at line 740 of file Matrix.

template<typename T>
typedef T base::matrixrange< T >::value_type
 

Definition at line 737 of file Matrix.


Constructor & Destructor Documentation

template<typename T>
base::matrixrange< T >::matrixrange matrix< T > &  m,
const range< size_type > &  rr,
const range< size_type > &  cr
[inline]
 

Definition at line 742 of file Matrix.

References base::ConstMatrixRange, base::ConstMatrixRow, base::Matrix, base::MatrixColumn, base::MatrixRange, and base::MatrixRow.

template<typename T>
base::matrixrange< T >::matrixrange const matrixrange< T > &  mr  )  [inline]
 

Definition at line 749 of file Matrix.

References base::ConstMatrixColumn.

template<typename T>
base::matrixrange< T >::~matrixrange  )  [inline]
 

Definition at line 750 of file Matrix.

template<typename T>
base::matrixrange< T >::matrixrange  )  [inline, protected]
 

Definition at line 862 of file Matrix.

References base::Matrix.


Member Function Documentation

template<typename T>
const_reference base::matrixrange< T >::_m size_type  r,
size_type  c
const [inline, protected]
 

Definition at line 869 of file Matrix.

References base::Matrix.

template<typename T>
reference base::matrixrange< T >::_m size_type  r,
size_type  c
[inline, protected]
 

Definition at line 868 of file Matrix.

Referenced by base::matrix< T >::operator *=().

template<typename T>
size_type base::matrixrange< T >::cols  )  const [inline]
 

Definition at line 753 of file Matrix.

References base::Matrix, base::MatrixRange, and base::Range.

Referenced by base::matrix< T >::operator *=().

template<typename T>
bool base::matrixrange< T >::equals const matrixrange< T > &  mr,
value_type  eps = value_type(consts::epsilon)
const [inline]
 

Definition at line 760 of file Matrix.

References base::Int, base::Matrix, and base::MatrixRow.

template<typename T>
matrixrange& base::matrixrange< T >::negate  )  [inline]
 

Definition at line 830 of file Matrix.

References base::Matrix, and base::Vector.

template<typename T>
base::matrixrange< T >::operator const_matrixrange  )  const [inline]
 

Definition at line 850 of file Matrix.

References base::Vector.

template<typename T>
base::matrixrange< T >::operator matrix  )  const [inline]
 

Definition at line 852 of file Matrix.

References base::Vector.

template<typename T>
bool base::matrixrange< T >::operator!= const matrixrange< T > &  mr  )  const [inline]
 

Definition at line 758 of file Matrix.

template<typename T>
reference base::matrixrange< T >::operator() size_type  r,
size_type  c
[inline]
 

Definition at line 766 of file Matrix.

References base::Int, base::Matrix, and base::MatrixColumn.

template<typename T>
const_reference base::matrixrange< T >::operator() size_type  r,
size_type  c
const [inline]
 

Definition at line 763 of file Matrix.

References base::ConstMatrixRow, base::Int, and base::Matrix.

template<typename T>
matrixrange& base::matrixrange< T >::operator+= const matrix< T > &  sm  )  [inline]
 

Definition at line 802 of file Matrix.

template<typename T>
matrixrange& base::matrixrange< T >::operator+= const matrixrange< T > &  mr  )  [inline]
 

Definition at line 793 of file Matrix.

template<typename T>
matrixrange& base::matrixrange< T >::operator-= const matrix< T > &  sm  )  [inline]
 

Definition at line 820 of file Matrix.

template<typename T>
matrixrange& base::matrixrange< T >::operator-= const matrixrange< T > &  mr  )  [inline]
 

Definition at line 811 of file Matrix.

template<typename T>
matrixrange& base::matrixrange< T >::operator= const matrix< T > &  sm  )  [inline]
 

Definition at line 780 of file Matrix.

References base::Int.

template<typename T>
matrixrange& base::matrixrange< T >::operator= const matrixrange< T > &  mr  )  [inline]
 

Definition at line 770 of file Matrix.

References base::ConstMatrixColumn, base::Int, and base::Matrix.

template<typename T>
bool base::matrixrange< T >::operator== const matrixrange< T > &  mr  )  const [inline]
 

Definition at line 757 of file Matrix.

References base::ConstMatrixRange.

template<typename T>
void base::matrixrange< T >::reset const matrix< T > &  m  )  [inline]
 

Definition at line 791 of file Matrix.

template<typename T>
void base::matrixrange< T >::reset const matrixrange< T > &  mr  )  [inline]
 

Definition at line 790 of file Matrix.

template<typename T>
size_type base::matrixrange< T >::rows  )  const [inline]
 

Definition at line 752 of file Matrix.

Referenced by base::matrix< T >::operator *=().

template<typename T>
size_type base::matrixrange< T >::size1  )  const [inline]
 

Definition at line 754 of file Matrix.

References base::MatrixRange.

template<typename T>
size_type base::matrixrange< T >::size2  )  const [inline]
 

Definition at line 755 of file Matrix.

References base::ConstMatrixRange, base::Matrix, and base::Range.

template<typename T>
matrixrange& base::matrixrange< T >::transpose  )  [inline]
 

Definition at line 839 of file Matrix.

References Assert, base::Matrix, base::matrixRow(), base::vector< T >::size(), base::matrix< T >::size1(), and base::Vector.


Member Data Documentation

template<typename T>
range<size_type> base::matrixrange< T >::cr [protected]
 

Definition at line 866 of file Matrix.

Referenced by base::matrix< T >::negate().

template<typename T>
matrix<T>& base::matrixrange< T >::m [protected]
 

Definition at line 864 of file Matrix.

Referenced by base::matrix< T >::negate(), and base::matrixrow< T >::operator=().

template<typename T>
range<size_type> base::matrixrange< T >::rr [protected]
 

Definition at line 865 of file Matrix.

Referenced by base::matrix< T >::negate().


The documentation for this class was generated from the following file:
Generated on Thu Jul 29 16:38:45 2004 for OpenSim by doxygen 1.3.6