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

base::matrix< T > Class Template Reference

Collaboration diagram for base::matrix< T >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef T value_type
typedef value_type & reference
typedef value_type * pointer
typedef const value_type & const_reference
typedef const value_type * const_pointer
typedef SInt difference_type
typedef Int size_type

Public Member Functions

 matrix ()
 matrix (size_type rows, size_type cols)
 matrix (const matrix &m)
 matrix (const vector< value_type > &v)
 matrix (size_type rows, size_type cols, const_reference p)
 ~matrix ()
size_type rows () const
size_type cols () const
size_type size1 () const
size_type size2 () const
bool operator== (const matrix &m) const
bool operator!= (const matrix &m) const
bool equals (const matrix &m, value_type eps=value_type(consts::epsilon)) const
reference operator() (size_type r, size_type c)
const_reference operator() (size_type r, size_type c) const
void resize (size_type rows, size_type cols)
matrix & operator= (const matrix &m)
void reset (const matrix &m)
matrix & operator+= (const matrix &m)
matrix & operator-= (const matrix &m)
matrix & negate ()
matrix & operator *= (const matrix &m2)
matrix & operator *= (const_reference s)
matrix & operator/= (const_reference s)
matrix & transpose ()
pointer c_array ()
const_pointer c_array () const

Protected Member Functions

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

Protected Attributes

size_type _rows
size_type _cols
array< value_type > a

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


Member Typedef Documentation

template<typename T>
typedef const value_type* base::matrix< T >::const_pointer
 

Definition at line 368 of file Matrix.

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

Definition at line 367 of file Matrix.

template<typename T>
typedef SInt base::matrix< T >::difference_type
 

Definition at line 369 of file Matrix.

template<typename T>
typedef value_type* base::matrix< T >::pointer
 

Definition at line 366 of file Matrix.

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

Definition at line 365 of file Matrix.

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

Definition at line 370 of file Matrix.

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

Definition at line 364 of file Matrix.


Constructor & Destructor Documentation

template<typename T>
base::matrix< T >::matrix (   )  [inline]
 

Definition at line 372 of file Matrix.

template<typename T>
base::matrix< T >::matrix (  size_type  rows,
size_type  cols
)  [inline]
 

Definition at line 373 of file Matrix.

template<typename T>
base::matrix< T >::matrix (  const matrix< T > &  m  )  [inline]
 

Definition at line 374 of file Matrix.

template<typename T>
base::matrix< T >::matrix (  const vector< value_type > &  v  )  [inline, explicit]
 

Definition at line 375 of file Matrix.

template<typename T>
base::matrix< T >::matrix (  size_type  rows,
size_type  cols,
const_reference  p
)  [inline]
 

Definition at line 377 of file Matrix.

References Assert, base::range< T >::b, and base::range< T >::e.

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

Definition at line 384 of file Matrix.


Member Function Documentation

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

Definition at line 497 of file Matrix.

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

Definition at line 496 of file Matrix.

template<typename T>
const_pointer base::matrix< T >::c_array (   )  const [inline]
 

Definition at line 488 of file Matrix.

template<typename T>
pointer base::matrix< T >::c_array (   )  [inline]
 

Definition at line 487 of file Matrix.

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

Definition at line 387 of file Matrix.

References base::range< size_type >::b, and base::range< size_type >::e.

Referenced by base::operator *().

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

Definition at line 396 of file Matrix.

References base::const_matrixrange< T >::_m(), Assert, base::const_matrixrange< T >::cols(), and base::const_matrixrange< T >::rows().

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

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

Definition at line 445 of file Matrix.

References base::matrixrange< T >::cr, base::matrixrange< T >::m, and base::matrixrange< T >::rr.

template<typename T>
matrix& base::matrix< T >::operator *= (  const_reference  s  )  [inline]
 

Definition at line 469 of file Matrix.

References Assert, base::matrixrange< T >::cols(), and base::matrixrange< T >::rows().

template<typename T>
matrix& base::matrix< T >::operator *= (  const matrix< T > &  m2  )  [inline]
 

Definition at line 452 of file Matrix.

References base::matrixrange< T >::_m(), Assert, base::matrixrange< T >::cols(), and base::matrixrange< T >::rows().

template<typename T>
bool base::matrix< T >::operator!= (  const matrix< T > &  m  )  const [inline]
 

Definition at line 393 of file Matrix.

References base::const_matrixrange< T >::cr, base::const_matrixrange< T >::m, and base::const_matrixrange< T >::rr.

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

Definition at line 410 of file Matrix.

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

Definition at line 407 of file Matrix.

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

Definition at line 428 of file Matrix.

References Assert, base::range< T >::b, and base::range< T >::e.

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

Definition at line 436 of file Matrix.

template<typename T>
matrix& base::matrix< T >::operator/= (  const_reference  s  )  [inline]
 

Definition at line 472 of file Matrix.

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

Definition at line 420 of file Matrix.

template<typename T>
bool base::matrix< T >::operator== (  const matrix< T > &  m  )  const [inline]
 

Definition at line 391 of file Matrix.

References base::const_matrixrange< T >::cr, base::const_matrixrange< T >::m, and base::const_matrixrange< T >::rr.

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

Definition at line 426 of file Matrix.

Referenced by robot::control::kinematics::ReferenceOpVectorFormObjective::setB().

template<typename T>
void base::matrix< T >::resize (  size_type  rows,
size_type  cols
)  [inline]
 

Definition at line 413 of file Matrix.

References base::range< size_type >::b, and base::const_matrixrange< T >::m.

Referenced by robot::control::kinematics::BetaFormConstraints::addConstraint(), and robot::control::kinematics::BetaFormConstraints::clear().

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

Definition at line 386 of file Matrix.

References base::range< size_type >::b, and base::range< size_type >::e.

Referenced by base::LCPSolve(), and base::operator *().

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

Definition at line 388 of file Matrix.

References base::const_matrixrange< T >::rows().

Referenced by robot::control::kinematics::BetaFormConstraints::addConstraint(), robot::control::kinematics::ReferenceOpVectorFormObjective::evaluate(), robot::control::kinematics::BetaFormConstraints::evaluate(), robot::control::kinematics::BetaFormConstraints::getBetas(), base::matrixcolumn< T >::matrixcolumn(), base::matrixRow(), base::operator<<(), base::toExpressionMatrix(), and base::matrixrange< T >::transpose().

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

Definition at line 389 of file Matrix.

References base::const_matrixrange< T >::cols().

Referenced by robot::control::kinematics::BetaFormConstraints::addConstraint(), robot::control::kinematics::ReferenceOpVectorFormObjective::evaluate(), base::matrixcolumn< T >::matrixcolumn(), base::matrixRow(), base::operator<<(), and base::toExpressionMatrix().

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

Definition at line 476 of file Matrix.

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


Member Data Documentation

template<typename T>
size_type base::matrix< T >::_cols [protected]
 

Definition at line 493 of file Matrix.

template<typename T>
size_type base::matrix< T >::_rows [protected]
 

Definition at line 493 of file Matrix.

template<typename T>
array<value_type> base::matrix< T >::a [protected]
 

Definition at line 494 of file Matrix.


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