ePDF  1.1.0
A QED evolution library
Public Member Functions | Private Attributes | Friends | List of all members
ePDF::Matrix< T > Class Template Reference

#include <matrix.h>

Public Member Functions

 Matrix (int const &Lines=0, int const &Columns=0, std::vector< T > const &Entries={})
 
void SetElement (int const &i, int const &j, T const &value)
 
GetElement (int const &i, int const &j) const
 
operator() (int const &i, int const &j) const
 
int GetLines () const
 
int GetColumns () const
 
std::vector< T > GetVector () const
 
Matrix< T > operator= (Matrix< T > const &term)
 
Matrix< T > operator+= (Matrix< T > const &term)
 
Matrix< T > operator-= (Matrix< T > const &term)
 
Matrix< T > operator*= (Matrix< T > const &term)
 
Matrix< T > operator*= (T const &coef)
 
Matrix< T > operator/= (T const &coef)
 
Matrix< T > operator*= (double const &coef)
 
Matrix< T > operator/= (double const &coef)
 

Private Attributes

int _Lines
 
int _Columns
 
std::vector< T > _Matrix
 

Friends

template<class Y >
std::ostream & operator<< (std::ostream &os, Matrix< Y > const &sg)
 

Constructor & Destructor Documentation

◆ Matrix()

template<class T>
ePDF::Matrix< T >::Matrix ( int const &  Lines = 0,
int const &  Columns = 0,
std::vector< T > const &  Entries = {} 
)
inline

Member Function Documentation

◆ GetColumns()

template<class T>
int ePDF::Matrix< T >::GetColumns ( ) const
inline

◆ GetElement()

template<class T>
T ePDF::Matrix< T >::GetElement ( int const &  i,
int const &  j 
) const
inline

◆ GetLines()

template<class T>
int ePDF::Matrix< T >::GetLines ( ) const
inline

◆ GetVector()

template<class T>
std::vector<T> ePDF::Matrix< T >::GetVector ( ) const
inline

◆ operator()()

template<class T>
T ePDF::Matrix< T >::operator() ( int const &  i,
int const &  j 
) const
inline

◆ operator*=() [1/3]

template<class T>
Matrix<T> ePDF::Matrix< T >::operator*= ( double const &  coef)
inline

◆ operator*=() [2/3]

template<class T>
Matrix<T> ePDF::Matrix< T >::operator*= ( Matrix< T > const &  term)
inline

◆ operator*=() [3/3]

template<class T>
Matrix<T> ePDF::Matrix< T >::operator*= ( T const &  coef)
inline

◆ operator+=()

template<class T>
Matrix<T> ePDF::Matrix< T >::operator+= ( Matrix< T > const &  term)
inline

◆ operator-=()

template<class T>
Matrix<T> ePDF::Matrix< T >::operator-= ( Matrix< T > const &  term)
inline

◆ operator/=() [1/2]

template<class T>
Matrix<T> ePDF::Matrix< T >::operator/= ( double const &  coef)
inline

◆ operator/=() [2/2]

template<class T>
Matrix<T> ePDF::Matrix< T >::operator/= ( T const &  coef)
inline

◆ operator=()

template<class T>
Matrix<T> ePDF::Matrix< T >::operator= ( Matrix< T > const &  term)
inline

◆ SetElement()

template<class T>
void ePDF::Matrix< T >::SetElement ( int const &  i,
int const &  j,
T const &  value 
)
inline

Friends And Related Function Documentation

◆ operator<<

template<class T>
template<class Y >
std::ostream& operator<< ( std::ostream &  os,
Matrix< Y > const &  sg 
)
friend

Member Data Documentation

◆ _Columns

template<class T>
int ePDF::Matrix< T >::_Columns
private

◆ _Lines

template<class T>
int ePDF::Matrix< T >::_Lines
private

◆ _Matrix

template<class T>
std::vector<T> ePDF::Matrix< T >::_Matrix
private

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