|
Boost-Commit : |
From: lord.zerom1nd_at_[hidden]
Date: 2008-08-29 10:40:03
Author: kieliszczyk
Date: 2008-08-29 10:40:03 EDT (Fri, 29 Aug 2008)
New Revision: 48451
URL: http://svn.boost.org/trac/boost/changeset/48451
Log:
poly
Text files modified:
sandbox/SOC/2008/polynomial/boost/polynomial/fast_fourier_transform.hpp | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
Modified: sandbox/SOC/2008/polynomial/boost/polynomial/fast_fourier_transform.hpp
==============================================================================
--- sandbox/SOC/2008/polynomial/boost/polynomial/fast_fourier_transform.hpp (original)
+++ sandbox/SOC/2008/polynomial/boost/polynomial/fast_fourier_transform.hpp 2008-08-29 10:40:03 EDT (Fri, 29 Aug 2008)
@@ -19,7 +19,7 @@
namespace detail {
- template<class InputIterator, class RandomAccessIterator>
+ template<typename InputIterator, typename RandomAccessIterator>
void bit_reverse_copy(InputIterator first, InputIterator last, RandomAccessIterator out) {
typedef typename std::iterator_traits<InputIterator>::difference_type difference_type;
difference_type sz = std::distance(first, last);
@@ -37,50 +37,50 @@
}
}
- template<class Complex>
+ template<typename Complex>
struct Complex_traits {
typedef typename Complex::value_type value_type;
};
- template<class Complex>
+ template<typename Complex>
inline typename Complex_traits<Complex>::value_type real_part(Complex const& c) {
return c.real();
}
- template<class Complex>
+ template<typename Complex>
inline typename Complex_traits<Complex>::value_type imag_part(Complex const& c) {
return c.imag();
}
- template<class Complex, class Real, class Imag>
+ template<typename Complex, typename Real, typename Imag>
inline Complex create_complex(Real const& r, Imag const& i) {
return Complex(r, i);
}
- template<class Complex>
+ template<typename Complex>
inline Complex complex_add(Complex const& a, Complex const& b) {
return create_complex<Complex>(real_part(a) + real_part(b), imag_part(a) + imag_part(b));
}
- template<class Complex>
+ template<typename Complex>
inline Complex complex_sub(Complex const& a, Complex const& b) {
return create_complex<Complex>(real_part(a) - real_part(b), imag_part(a) - imag_part(b));
}
- template<class Complex>
+ template<typename Complex>
inline Complex complex_mul(Complex const& a, Complex const& b) {
return create_complex<Complex>(real_part(a) * real_part(b) - imag_part(a) * imag_part(b),
imag_part(a) * real_part(b) + real_part(a) * imag_part(b));
}
- template<class Complex, class ScalarType>
+ template<typename Complex, typename ScalarType>
inline Complex complex_div_by_scalar(Complex const& comp, ScalarType const& scal) {
return create_complex<Complex>(real_part(comp) / scal, imag_part(comp) / scal);
}
} // namespace detail
- template<class InputIterator, class OutputIterator>
+ template<typename InputIterator, typename OutputIterator>
void fast_fourier_transform(InputIterator first, InputIterator last, OutputIterator out) {
using namespace boost::math;
using namespace boost::math::tools;
@@ -114,7 +114,7 @@
*out++ = dft[i];
}
- template<class InputIterator, class OutputIterator>
+ template<typename InputIterator, typename OutputIterator>
void inverse_fast_fourier_transform(InputIterator first, InputIterator last, OutputIterator out) {
using namespace boost::math;
using namespace boost::math::tools;
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk