template<class T>
class Expanded< T >
A template class for Taylor double expansion of several objects.
- Author
- HEPfit Collaboration
- Copyright
- GNU General Public License
This is a template class that implement an expansion of the object T in two generic expansion parameters. T can be double, gslpp::complex, gslpp::vector<double>, gslpp::vector<gslpp::complex>, gslpp::matrix<double>, and gslpp::matrix<gslpp::comlex>. The elements of the expansion are stored in a private std::vector<std::vector<T> >. The variables int n1 and std::vector<int> n2 contain the size of the outer and inner vectors respectively. The variables minord1 and minord2 contain the starting powers of the expansion in the two parameters. Operators +, -, *, /, ==, !=, << are defined and the proper number of terms is retained in the result.
Definition at line 55 of file Expanded.h.
|
| template<> |
| Expanded< double > | abs2 () const |
| |
| Expanded< double > | abs2 () const |
| | Method to return the squared absolute value of a Expanded<complex>. More...
|
| |
| template<> |
| Expanded< double > | abs2 () const |
| |
| void | checkOrd (int j, int i, std::string s) const |
| |
| template<> |
| Expanded< complex > | conjugate () const |
| |
| Expanded< T > | conjugate () const |
| | Method to return the conjugate value of a Expanded<complex>. More...
|
| |
| template<> |
| Expanded< complex > | conjugate () const |
| |
| | Expanded () |
| | Empty constructor. All data initialized to zero. More...
|
| |
| | Expanded (std::vector< std::vector< T > > &dinp, int minord2_i=0, int minord1_i=0) |
| | Constructor of a double expansion. More...
|
| |
| | Expanded (std::vector< T > &dinp, int minord2_i=0) |
| | Constructor of a single expansion. More...
|
| |
| const int | getMin1 () const |
| | Get the minimum order of the outer expansion. More...
|
| |
| const int | getMin2 () const |
| | Get the minimum order of the inner expansion. More...
|
| |
| const int | getN1 () const |
| | Get the number of terms in the outer expansion. More...
|
| |
| const std::vector< int > & | getN2 () const |
| | Get the number of terms in the inner expansion. More...
|
| |
| const T & | getOrd (int j) const |
| | Get an element of a single expansion. More...
|
| |
| const T & | getOrd (int j, int i) const |
| | Get an element of a double expansion. More...
|
| |
| template<> |
| Expanded< double > | inverse () const |
| |
| template<> |
| Expanded< complex > | inverse () const |
| |
| Expanded< T > | inverse () const |
| |
| bool | operator!= (const Expanded< T > &z) const |
| |
| template<class Q > |
| std::enable_if< isSc(T, double)||(isSc(T, complex) &&isComp(Q))||(isMat(T, double) &&!isS(Q))||(isMat(T, complex) &&(isVec(Q, complex)||isMat(Q, complex))), Expanded< Q > >::type | operator* (const Expanded< Q > &z) const |
| |
| template<class Q > |
| std::enable_if<(!isSc(T, double) &&isSc(Q, double))||(!isS(T) &&!isMat(T, double) &&isMat(Q, double))||((isMat(T, complex)||isVec(T, complex)) &&isSc(Q, complex))||(isVec(T, complex) &&isMat(Q, complex)), Expanded< T > >::type | operator* (const Expanded< Q > &z) const |
| |
| template<class Q > |
| std::enable_if<(isVec(T, double) &&isSc(Q, complex))||(isVec(T, double) &&isMat(Q, complex)), Expanded< vector< complex > > >::type | operator* (const Expanded< Q > &z) const |
| |
| template<class Q > |
| std::enable_if<(isSc(T, complex) &&isVec(Q, double))||(isMat(T, complex) &&isVec(Q, double)), Expanded< vector< complex > > >::type | operator* (const Expanded< Q > &z) const |
| |
| template<class Q > |
| std::enable_if<(isVec(T, double) &&isVec(Q, complex))||(isVec(T, complex) &&isVec(Q, double))||(isVec(T, complex) &&isVec(Q, complex)), Expanded< complex > >::type | operator* (const Expanded< Q > &z) const |
| |
| template<class Q > |
| std::enable_if<(isMat(T, double) &&isSc(Q, complex)), Expanded< matrix< complex > > >::type | operator* (const Expanded< Q > &z) const |
| |
| template<class Q > |
| std::enable_if<(isSc(T, complex) &&isMat(Q, double)), Expanded< matrix< complex > > >::type | operator* (const Expanded< Q > &z) const |
| |
| template<class Q > |
| std::enable_if< isVec(T, double) &&isVec(Q, double), Expanded< double > >::type | operator* (const Expanded< Q > &z) const |
| |
| template<class Q > |
| std::enable_if<(std::is_same< T, Q >::value &&!isV(T))||isSc(Q, double)||(!isS(T) &&isMat(Q, double))||((isMat(T, complex)||isVec(T, complex)) &&isS(Q))||(isVec(T, complex) &&isMat(Q, complex))||(isV(T) &&isSc(Q, double))||(isMat(T, double) &&isSc(Q, double)), Expanded< T > >::type | operator* (const Q &z) const |
| |
| template<class Q > |
| std::enable_if< isVec(T, double) &&isVec(Q, double), Expanded< double > >::type | operator* (const Q &z) const |
| |
| template<class Q > |
| std::enable_if<(isSc(T, double) &&isSc(Q, complex))||(isV(T) &&isV(Q) &&!(isVec(T, double) &&isVec(Q, double))), Expanded< complex > >::type | operator* (const Q &z) const |
| |
| template<class Q > |
| std::enable_if< isVec(Q, double) &&(isSc(T, double)||isMat(T, double)), Expanded< vector< double > > >::type | operator* (const Q &z) const |
| |
| template<class Q > |
| std::enable_if<(isVec(Q, complex) &&(isS(T)||isM(T)))||(isVec(Q, double) &&(isSc(T, complex)||isMat(T, complex))), Expanded< vector< complex > > >::type | operator* (const Q &z) const |
| |
| template<class Q > |
| std::enable_if< isVec(T, double) &&(isSc(Q, complex)||isMat(Q, complex)), Expanded< vector< complex > > >::type | operator* (const Q &z) const |
| |
| template<class Q > |
| std::enable_if<(isSc(T, double) &&isMat(Q, double)), Expanded< matrix< double > > >::type | operator* (const Q &z) const |
| |
| template<class Q > |
| std::enable_if<(isS(T) &&isMat(Q, complex))||(isSc(T, complex) &&isMat(Q, double))||(isMat(T, double) &&isMat(Q, complex)), Expanded< matrix< complex > > >::type | operator* (const Q &z) const |
| |
| template<class Q > |
| std::enable_if< isMat(T, double) &&isSc(Q, complex), Expanded< matrix< complex > > >::type | operator* (const Q &z) const |
| |
| template<class Q > |
| std::enable_if< sameType(T, Q) &&isComp(T), Expanded< T > >::type | operator+ (const Expanded< Q > &z) const |
| |
| template<class Q > |
| std::enable_if< sameType(T, Q) &&!isComp(T), Expanded< Q > >::type | operator+ (const Expanded< Q > &z) const |
| |
| Expanded< T > | operator- () const |
| |
| template<class Q > |
| std::enable_if< sameType(T, Q) &&isComp(T), Expanded< T > >::type | operator- (const Expanded< Q > &z) const |
| |
| template<class Q > |
| std::enable_if< sameType(T, Q) &&!isComp(T), Expanded< Q > >::type | operator- (const Expanded< Q > &z) const |
| |
| Expanded< T > | operator/ (const double &z) const |
| |
| template<class Q > |
| std::enable_if< isSc(Q, double), Expanded< T > >::type | operator/ (const Expanded< Q > &z) const |
| |
| template<class Q > |
| std::enable_if< isSc(Q, complex) &&isS(T), Expanded< complex > >::type | operator/ (const Expanded< Q > &z) const |
| |
| template<class Q > |
| std::enable_if< isSc(Q, complex) &&isV(T), Expanded< vector< complex > > >::type | operator/ (const Expanded< Q > &z) const |
| |
| template<class Q > |
| std::enable_if< isSc(Q, complex) &&isM(T), Expanded< matrix< complex > > >::type | operator/ (const Expanded< Q > &z) const |
| |
| template<class Q > |
| std::enable_if< isComp(T) &&isSc(Q, complex), Expanded< T > >::type | operator/ (const Q &z) const |
| |
| template<class Q > |
| std::enable_if< isSc(T, double) &&isSc(Q, complex), Expanded< complex > >::type | operator/ (const Q &z) const |
| |
| template<class Q > |
| std::enable_if< isVec(T, double) &&isSc(Q, complex), Expanded< vector< complex > > >::type | operator/ (const Q &z) const |
| |
| template<class Q > |
| std::enable_if< isMat(T, double) &&isSc(Q, complex), Expanded< matrix< complex > > >::type | operator/ (const Q &z) const |
| |
| bool | operator== (const Expanded< T > &z) const |
| |
| template<> |
| Expanded< double > | real () const |
| |
| Expanded< double > | real () const |
| | Method to return the real part of a complex Expanded. More...
|
| |
| template<> |
| Expanded< double > | real () const |
| |
| T | Series (int ord2, double als2=1.) |
| | Method to sum an expansion up to a given order. More...
|
| |
| T | Series (std::vector< int > ord2, int ord1, double als2=1., double als1=1.) |
| | Method to sum a double expansion up to a given order. More...
|
| |
| template<class Q > |
| std::enable_if< isMat(T, Q), void >::type | setMatrixElement (int j, int h, int k, Q x) |
| | Set an element of a matrix in a single Expanded<matrix<*> > More...
|
| |
| template<class Q > |
| std::enable_if< isMat(T, Q), void >::type | setMatrixElement (int j, int i, int h, int k, Q x) |
| | Set an element of a matrix in a double Expanded<matrix<*> > More...
|
| |
| void | setOrd (int j, int i, T value) |
| | Set an element of a double expansion. More...
|
| |
| void | setOrd (int j, T value) |
| | Set an element of a single expansion. More...
|
| |
| template<class Q > |
| std::enable_if< isVec(T, Q), void >::type | setVectorElement (int j, int h, Q x) |
| | Set an element of a matrix in a single Expanded<vector<*> > More...
|
| |
| template<class Q > |
| std::enable_if< isVec(T, Q), void >::type | setVectorElement (int j, int i, int h, Q x) |
| | Set an element of a matrix in a double Expanded<vector<*> > More...
|
| |
| template<> |
| Expanded< matrix< double > > | transpose () const |
| |
| template<> |
| Expanded< matrix< complex > > | transpose () const |
| |
| Expanded< T > | transpose () const |
| | Method to transpose a Expanded<matrix<double> > or a Expanded<matrix<complex> >. More...
|
| |
| template<> |
| Expanded< matrix< double > > | transpose () const |
| |
| template<> |
| Expanded< matrix< complex > > | transpose () const |
| |
| Expanded< T > | truncate (int n2max) |
| | Method to truncate a single expansion. More...
|
| |
| Expanded< T > | truncate (std::vector< int > n2max, int n1max) |
| | Method to truncate a double expansion. More...
|
| |
| template<> |
| matrix< double > | Zero () const |
| |
| template<> |
| matrix< complex > | Zero () const |
| |
| template<> |
| vector< double > | Zero () const |
| |
| template<> |
| vector< complex > | Zero () const |
| |
| T | Zero () const |
| | Return an empty instance of class T. More...
|
| |
| template<> |
| matrix< double > | Zero () const |
| |
| template<> |
| matrix< complex > | Zero () const |
| |
| template<> |
| vector< double > | Zero () const |
| |
| template<> |
| vector< complex > | Zero () const |
| |