CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
L1MuGMTMatrix< T > Class Template Reference

#include <L1MuGMTMatrix.h>

Public Member Functions

int colAny (int c) const
 is any element in column c > 0 ? return index or -1 More...
 
void init (T v=0)
 initialize matrix More...
 
bool isMax (int r, int c) const
 is the element (r,c) the max. entry in its row and column? More...
 
bool isMin (int r, int c) const
 is the element (r,c) the min. entry in its row and column? More...
 
 L1MuGMTMatrix (int r, int c)
 constructor More...
 
 L1MuGMTMatrix (const L1MuGMTMatrix< T > &)
 copy constructor More...
 
Toperator() (int r, int c)
 
const Toperator() (int r, int c) const
 
L1MuGMTMatrixoperator*= (const T &s)
 scalar multiplication More...
 
L1MuGMTMatrixoperator+= (const L1MuGMTMatrix &m)
 matrix addition More...
 
L1MuGMTMatrixoperator+= (const T &s)
 scalar addition More...
 
L1MuGMTMatrixoperator= (const L1MuGMTMatrix &m)
 assignment operator More...
 
void print () const
 print matrix More...
 
int rowAny (int r) const
 is any element in row r > 0 ? return index or -1 More...
 
void set (int r, int c, T v)
 set matrix element More...
 
virtual ~L1MuGMTMatrix ()
 destructor More...
 

Private Attributes

int c_size
 
T ** p
 
int r_size
 

Detailed Description

template<class T>
class L1MuGMTMatrix< T >

Matrix.

general matrix

Definition at line 47 of file L1MuGMTMatrix.h.

Constructor & Destructor Documentation

template<class T >
L1MuGMTMatrix< T >::L1MuGMTMatrix ( int  r,
int  c 
)

constructor

Definition at line 109 of file L1MuGMTMatrix.h.

template<class T>
L1MuGMTMatrix< T >::L1MuGMTMatrix ( const L1MuGMTMatrix< T > &  mat)

copy constructor

Definition at line 126 of file L1MuGMTMatrix.h.

template<class T >
L1MuGMTMatrix< T >::~L1MuGMTMatrix ( )
virtual

destructor

Definition at line 145 of file L1MuGMTMatrix.h.

Member Function Documentation

template<class T >
int L1MuGMTMatrix< T >::colAny ( int  c) const

is any element in column c > 0 ? return index or -1

Definition at line 326 of file L1MuGMTMatrix.h.

Referenced by L1MuGMTCancelOutUnit::decide().

template<class T>
void L1MuGMTMatrix< T >::init ( T  v = 0)

initialize matrix

Definition at line 186 of file L1MuGMTMatrix.h.

Referenced by L1MuGMTInputEvent::L1MuGMTInputEvent(), and L1MuGMTInputEvent::reset().

template<class T >
bool L1MuGMTMatrix< T >::isMax ( int  r,
int  c 
) const

is the element (r,c) the max. entry in its row and column?

Definition at line 280 of file L1MuGMTMatrix.h.

template<class T >
bool L1MuGMTMatrix< T >::isMin ( int  r,
int  c 
) const

is the element (r,c) the min. entry in its row and column?

Definition at line 307 of file L1MuGMTMatrix.h.

template<class T >
T & L1MuGMTMatrix< T >::operator() ( int  r,
int  c 
)

Definition at line 160 of file L1MuGMTMatrix.h.

template<class T >
const T & L1MuGMTMatrix< T >::operator() ( int  r,
int  c 
) const

Definition at line 173 of file L1MuGMTMatrix.h.

template<class T>
L1MuGMTMatrix< T > & L1MuGMTMatrix< T >::operator*= ( const T s)

scalar multiplication

Definition at line 265 of file L1MuGMTMatrix.h.

template<class T >
L1MuGMTMatrix< T > & L1MuGMTMatrix< T >::operator+= ( const L1MuGMTMatrix< T > &  m)

matrix addition

Definition at line 231 of file L1MuGMTMatrix.h.

template<class T>
L1MuGMTMatrix< T > & L1MuGMTMatrix< T >::operator+= ( const T s)

scalar addition

Definition at line 250 of file L1MuGMTMatrix.h.

template<class T >
L1MuGMTMatrix< T > & L1MuGMTMatrix< T >::operator= ( const L1MuGMTMatrix< T > &  m)

assignment operator

Definition at line 212 of file L1MuGMTMatrix.h.

template<class T >
void L1MuGMTMatrix< T >::print ( void  ) const

print matrix

Definition at line 358 of file L1MuGMTMatrix.h.

template<class T >
int L1MuGMTMatrix< T >::rowAny ( int  r) const

is any element in row r > 0 ? return index or -1

Definition at line 342 of file L1MuGMTMatrix.h.

Referenced by L1MuGMTCancelOutUnit::decide().

template<class T>
void L1MuGMTMatrix< T >::set ( int  r,
int  c,
T  v 
)

set matrix element

Definition at line 199 of file L1MuGMTMatrix.h.

Member Data Documentation

template<class T>
int L1MuGMTMatrix< T >::c_size
private

Definition at line 101 of file L1MuGMTMatrix.h.

template<class T>
T** L1MuGMTMatrix< T >::p
private

Definition at line 103 of file L1MuGMTMatrix.h.

template<class T>
int L1MuGMTMatrix< T >::r_size
private

Definition at line 101 of file L1MuGMTMatrix.h.