Changeset b8f55af in tol


Ignore:
Timestamp:
May 28, 2015, 9:26:03 AM (11 years ago)
Author:
Pedro Gea <pgea@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
7abace5
Parents:
bb4284b
Message:

Refs #1834
Se evita la dependencia explícita de tol_bpolyn.h con boost.

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@6740 be4846ae-f051-483a-831f-b64e7d08527f

Location:
tol/bmath
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • tol/bmath/matfun.cpp

    rbb4284b rb8f55af  
    3030#include <gsl/gsl_math.h>
    3131#include <gsl/gsl_sf_hyperg.h>
     32
     33#include <boost/math/common_factor_rt.hpp>
    3234
    3335#define LIMITFactorial  100
    … …  
    996998};
    997999
    998 
     1000//--------------------------------------------------------------------
     1001BInt GCD(const BInt& a, const BInt& b)
     1002     
     1003/*! Returns the Greatest Common Divisor of two integers
     1004 */
     1005//--------------------------------------------------------------------
     1006{
     1007    return(boost::math::gcd(a, b));
     1008};
     1009
     1010//--------------------------------------------------------------------
     1011BInt LCM(const BInt& a, const BInt& b)
     1012     
     1013/*! Returns the Least Common Multiple of two integers
     1014 */
     1015//--------------------------------------------------------------------
     1016{
     1017    return(boost::math::lcm(a, b));
     1018};
     1019
  • tol/bmath/mathobjects/tol_bpolyn.h

    rbb4284b rb8f55af  
    2424
    2525#include <tol/tol_bmonome.h>
    26 #include <boost/math/common_factor_rt.hpp>
     26#include <tol/tol_bmatfun.h>
    2727#include <limits>
    2828
    … …  
    370370  {
    371371    deg = (*this)(i).Degree();
    372     if(deg) { gcd = boost::math::gcd(gcd,deg); }
     372    if(deg) { gcd = GCD(gcd,deg); }
    373373  }
    374374  return(gcd);
  • tol/bmath/tol_bmatfun.h

    rbb4284b rb8f55af  
    6969BDat InvFactorial(const BDat& x);
    7070
     71BInt GCD(const BInt& m, const BInt& n);
     72BInt LCM(const BInt& m, const BInt& n);
     73
    7174#endif  // TOL_BMATFUN_H
    7275
Note: See TracChangeset for help on using the changeset viewer.