CMS 3D CMS Logo

Public Member Functions | Private Attributes

LinearEquation3< T >::Array3< U > Class Template Reference

#include <LinearEquation3.h>

List of all members.

Public Member Functions

 Array3 ()
 Array3 (U a0, U a1, U a2)
 Array3 (const Basic3DVector< U > &v)
Array3 operator* (U t) const
void operator-= (const Array3 &other)
Array3operator= (const Array3 &other)
Array3operator= (const Basic3DVector< U > &v)
const U & operator[] (int i) const
U & operator[] (int i)
void subtractScaled (const Array3 &a, U c)

Private Attributes

a_ [3]

Detailed Description

template<class T>
template<class U>
class LinearEquation3< T >::Array3< U >

Definition at line 17 of file LinearEquation3.h.


Constructor & Destructor Documentation

template<class T>
template<class U>
LinearEquation3< T >::Array3< U >::Array3 ( ) [inline]

Definition at line 19 of file LinearEquation3.h.

Referenced by LinearEquation3< T >::Array3< U >::operator*().

{}
template<class T>
template<class U>
LinearEquation3< T >::Array3< U >::Array3 ( a0,
a1,
a2 
) [inline]

Definition at line 20 of file LinearEquation3.h.

References LinearEquation3< T >::Array3< U >::a_.

{ a_[0] = a0; a_[1] = a1; a_[2] = a2;}
template<class T>
template<class U>
LinearEquation3< T >::Array3< U >::Array3 ( const Basic3DVector< U > &  v) [inline]

Definition at line 21 of file LinearEquation3.h.

References LinearEquation3< T >::Array3< U >::a_, Basic3DVector< T >::x(), Basic3DVector< T >::y(), and Basic3DVector< T >::z().

                                       {
      a_[0] = v.x(); a_[1] = v.y(); a_[2] = v.z();
    }

Member Function Documentation

template<class T>
template<class U>
Array3 LinearEquation3< T >::Array3< U >::operator* ( t) const [inline]

Definition at line 43 of file LinearEquation3.h.

References LinearEquation3< T >::Array3< U >::a_, and LinearEquation3< T >::Array3< U >::Array3().

                                 {
      return Array3( a_[0]*t, a_[1]*t, a_[2]*t);
    }
template<class T>
template<class U>
void LinearEquation3< T >::Array3< U >::operator-= ( const Array3< U > &  other) [inline]

Definition at line 37 of file LinearEquation3.h.

References LinearEquation3< T >::Array3< U >::a_.

                                          {
      a_[0] -= other[0];
      a_[1] -= other[1];
      a_[2] -= other[2];
    }
template<class T>
template<class U>
Array3& LinearEquation3< T >::Array3< U >::operator= ( const Array3< U > &  other) [inline]

Definition at line 25 of file LinearEquation3.h.

References LinearEquation3< T >::Array3< U >::a_.

                                            {
      a_[0] = other[0]; a_[1] = other[1]; a_[2] = other[2];
      return *this;
    }
template<class T>
template<class U>
Array3& LinearEquation3< T >::Array3< U >::operator= ( const Basic3DVector< U > &  v) [inline]

Definition at line 30 of file LinearEquation3.h.

References LinearEquation3< T >::Array3< U >::a_, Basic3DVector< T >::x(), Basic3DVector< T >::y(), and Basic3DVector< T >::z().

                                                 {
      a_[0] = v.x(); a_[1] = v.y(); a_[2] = v.z();
      return *this;
    }
template<class T>
template<class U>
const U& LinearEquation3< T >::Array3< U >::operator[] ( int  i) const [inline]

Definition at line 36 of file LinearEquation3.h.

References LinearEquation3< T >::Array3< U >::a_, and i.

{ return a_[i];}
template<class T>
template<class U>
U& LinearEquation3< T >::Array3< U >::operator[] ( int  i) [inline]

Definition at line 35 of file LinearEquation3.h.

References LinearEquation3< T >::Array3< U >::a_, and i.

{ return a_[i];}
template<class T>
template<class U>
void LinearEquation3< T >::Array3< U >::subtractScaled ( const Array3< U > &  a,
c 
) [inline]

Definition at line 47 of file LinearEquation3.h.

References LinearEquation3< T >::Array3< U >::a_, and trackerHits::c.

Referenced by LinearEquation3< T >::solution().

                                               {
      a_[0] -= a[0]*c;  a_[1] -= a[1]*c;  a_[2] -= a[2]*c; 
    }

Member Data Documentation

template<class T>
template<class U>
U LinearEquation3< T >::Array3< U >::a_[3] [private]