Polymetic  1.1
A c++ library for polynomial and matrix arithmetic, focused on applications in Kinematics.
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
Polynomial.cpp File Reference

The file contains the explicit intantiations of the template class Polynomial. More...

#include "../include/Polynomial.ipp"
#include <gmpxx.h>
Include dependency graph for Polynomial.cpp:

Go to the source code of this file.

Functions

template Polynomial< double > operator* (const Polynomial< double > &p1, const Polynomial< double > &p2)
 
template Polynomial< mpz_class > operator* (const Polynomial< mpz_class > &p1, const Polynomial< mpz_class > &p2)
 
template Polynomial< mpq_class > operator* (const Polynomial< mpq_class > &p1, const Polynomial< mpq_class > &p2)
 
template Polynomial< mpf_class > operator* (const Polynomial< mpf_class > &p1, const Polynomial< mpf_class > &p2)
 

Detailed Description

The file contains the explicit intantiations of the template class Polynomial.

It defines/instantiates the Polynomial class for the following types

  1. double
  2. mpz_class (GMP Integers)
  3. mpq_class (GMP Rationals)
  4. mpf_class (GMP Floats)

    One must link with the object code of this file to use the Polynomial class with the above types. If one wishes to instantiate the Polynomial class with any other template argument, then one should include "Polynomial.ipp" header file as it contains the implementations of the member functions of the template class Polynomial.

Definition in file Polynomial.cpp.

Function Documentation

template Polynomial<double> operator* ( const Polynomial< double > &  p1,
const Polynomial< double > &  p2 
)
template Polynomial<mpz_class> operator* ( const Polynomial< mpz_class > &  p1,
const Polynomial< mpz_class > &  p2 
)
template Polynomial<mpq_class> operator* ( const Polynomial< mpq_class > &  p1,
const Polynomial< mpq_class > &  p2 
)
template Polynomial<mpf_class> operator* ( const Polynomial< mpf_class > &  p1,
const Polynomial< mpf_class > &  p2 
)