atlas  0.6
Public Member Functions | Private Types | Private Attributes | List of all members
atlas::ratvec::RationalVector< C > Class Template Reference

Element of lattice tensored with rational numbers. More...

#include <Atlas.h>

Public Member Functions

 RationalVector (size_t r)
 
template<typename C1 >
 RationalVector (const matrix::Vector< C1 > &v, C d)
 
denominator () const
 
const Vnumerator () const
 
size_t size () const
 
bool operator== (const RationalVector &a) const
 
bool operator!= (const RationalVector &a) const
 
bool operator< (const RationalVector &a) const
 
RationalVector operator+ (const RationalVector &v) const
 
RationalVectoroperator+= (const RationalVector &v)
 
RationalVector operator- () const
 
RationalVector operator- (const RationalVector &v) const
 
RationalVectoroperator-= (const RationalVector &v)
 
RationalVectoroperator*= (C n)
 
RationalVectoroperator/= (C n)
 
RationalVectoroperator%= (C n)
 
template<typename C1 >
RationalVectoroperator+= (const matrix::Vector< C1 > &v)
 
template<typename C1 >
RationalVectoroperator-= (const matrix::Vector< C1 > &v)
 
template<typename C1 >
RationalVector operator+ (const matrix::Vector< C1 > &v) const
 
template<typename C1 >
RationalVector operator- (const matrix::Vector< C1 > &v) const
 
RationalVectoroperator*= (const arithmetic::Rational &r)
 
RationalVectoroperator/= (const arithmetic::Rational &r)
 
RationalVector operator* (const arithmetic::Rational &r) const
 
RationalVector operator/ (const arithmetic::Rational &r) const
 
template<typename C1 >
dot (const matrix::Vector< C1 > &w) const
 
RationalVectornormalize ()
 
Vnumerator ()
 

Private Types

typedef matrix::Vector< C > V
 

Private Attributes

V d_num
 
arithmetic::Denom_t d_denom
 

Detailed Description

template<typename C>
class atlas::ratvec::RationalVector< C >

Element of lattice tensored with rational numbers.

LatticeElt d_num divided by unsigned LatticeCoeff d_denom.

Member Typedef Documentation

template<typename C>
typedef matrix::Vector<C> atlas::ratvec::RationalVector< C >::V
private

Constructor & Destructor Documentation

template<typename C>
atlas::ratvec::RationalVector< C >::RationalVector ( size_t  r)
inlineexplicit
template<typename C>
template<typename C1 >
atlas::ratvec::RationalVector< C >::RationalVector ( const matrix::Vector< C1 > &  v,
d 
)

Member Function Documentation

template<typename C>
C atlas::ratvec::RationalVector< C >::denominator ( ) const
inline
template<typename C>
template<typename C1 >
C atlas::ratvec::RationalVector< C >::dot ( const matrix::Vector< C1 > &  w) const
inline
template<typename C >
RationalVector< C > & atlas::ratvec::RationalVector< C >::normalize ( )
template<typename C>
const V& atlas::ratvec::RationalVector< C >::numerator ( ) const
inline
template<typename C>
V& atlas::ratvec::RationalVector< C >::numerator ( )
inline
template<typename C>
bool atlas::ratvec::RationalVector< C >::operator!= ( const RationalVector< C > &  a) const
inline
template<typename C>
RationalVector< C > & atlas::ratvec::RationalVector< C >::operator%= ( n)
template<typename C >
RationalVector< C > atlas::ratvec::RationalVector< C >::operator* ( const arithmetic::Rational r) const
template<typename C>
RationalVector< C > & atlas::ratvec::RationalVector< C >::operator*= ( n)
template<typename C>
RationalVector< C > & atlas::ratvec::RationalVector< C >::operator*= ( const arithmetic::Rational r)
template<typename C >
RationalVector< C > atlas::ratvec::RationalVector< C >::operator+ ( const RationalVector< C > &  v) const
template<typename C>
template<typename C1 >
RationalVector atlas::ratvec::RationalVector< C >::operator+ ( const matrix::Vector< C1 > &  v) const
inline
template<typename C>
RationalVector& atlas::ratvec::RationalVector< C >::operator+= ( const RationalVector< C > &  v)
inline
template<typename C>
template<typename C1 >
RationalVector& atlas::ratvec::RationalVector< C >::operator+= ( const matrix::Vector< C1 > &  v)
inline
template<typename C>
RationalVector atlas::ratvec::RationalVector< C >::operator- ( ) const
inline
template<typename C>
RationalVector atlas::ratvec::RationalVector< C >::operator- ( const RationalVector< C > &  v) const
inline
template<typename C>
template<typename C1 >
RationalVector atlas::ratvec::RationalVector< C >::operator- ( const matrix::Vector< C1 > &  v) const
inline
template<typename C>
RationalVector& atlas::ratvec::RationalVector< C >::operator-= ( const RationalVector< C > &  v)
inline
template<typename C>
template<typename C1 >
RationalVector& atlas::ratvec::RationalVector< C >::operator-= ( const matrix::Vector< C1 > &  v)
inline
template<typename C >
RationalVector< C > atlas::ratvec::RationalVector< C >::operator/ ( const arithmetic::Rational r) const
template<typename C>
RationalVector< C > & atlas::ratvec::RationalVector< C >::operator/= ( n)
template<typename C>
RationalVector< C > & atlas::ratvec::RationalVector< C >::operator/= ( const arithmetic::Rational r)
template<typename C >
bool atlas::ratvec::RationalVector< C >::operator< ( const RationalVector< C > &  a) const
template<typename C >
bool atlas::ratvec::RationalVector< C >::operator== ( const RationalVector< C > &  a) const
template<typename C>
size_t atlas::ratvec::RationalVector< C >::size ( ) const
inline

Member Data Documentation

template<typename C>
arithmetic::Denom_t atlas::ratvec::RationalVector< C >::d_denom
private
template<typename C>
V atlas::ratvec::RationalVector< C >::d_num
private

The documentation for this class was generated from the following files: