Changeset b8f55af in tol
- Timestamp:
- May 28, 2015, 9:26:03 AM (11 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 7abace5
- Parents:
- bb4284b
- Location:
- tol/bmath
- Files:
-
- 3 edited
-
matfun.cpp (modified) (2 diffs)
-
mathobjects/tol_bpolyn.h (modified) (2 diffs)
-
tol_bmatfun.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tol/bmath/matfun.cpp
rbb4284b rb8f55af 30 30 #include <gsl/gsl_math.h> 31 31 #include <gsl/gsl_sf_hyperg.h> 32 33 #include <boost/math/common_factor_rt.hpp> 32 34 33 35 #define LIMITFactorial 100 … … 996 998 }; 997 999 998 1000 //-------------------------------------------------------------------- 1001 BInt 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 //-------------------------------------------------------------------- 1011 BInt 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 24 24 25 25 #include <tol/tol_bmonome.h> 26 #include < boost/math/common_factor_rt.hpp>26 #include <tol/tol_bmatfun.h> 27 27 #include <limits> 28 28 … … 370 370 { 371 371 deg = (*this)(i).Degree(); 372 if(deg) { gcd = boost::math::gcd(gcd,deg); }372 if(deg) { gcd = GCD(gcd,deg); } 373 373 } 374 374 return(gcd); -
tol/bmath/tol_bmatfun.h
rbb4284b rb8f55af 69 69 BDat InvFactorial(const BDat& x); 70 70 71 BInt GCD(const BInt& m, const BInt& n); 72 BInt LCM(const BInt& m, const BInt& n); 73 71 74 #endif // TOL_BMATFUN_H 72 75
Note: See TracChangeset
for help on using the changeset viewer.
