mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-10-05 13:00:00 +00:00
replace implementation <cmath> functions to Sprout.Math.Functions
This commit is contained in:
parent
6ccd6e1cf4
commit
6bb2d0fb87
21 changed files with 212 additions and 106 deletions
|
|
@ -1,11 +1,12 @@
|
|||
#ifndef SPROUT_NUMERIC_DFT_DETAIL_DFT_ELEMENT_GEN_HPP
|
||||
#define SPROUT_NUMERIC_DFT_DETAIL_DFT_ELEMENT_GEN_HPP
|
||||
|
||||
#include <cmath>
|
||||
#include <iterator>
|
||||
#include <type_traits>
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/iterator/operation.hpp>
|
||||
#include <sprout/math/sin.hpp>
|
||||
#include <sprout/math/cos.hpp>
|
||||
|
||||
namespace sprout {
|
||||
namespace detail {
|
||||
|
|
@ -20,8 +21,8 @@ namespace sprout {
|
|||
)
|
||||
{
|
||||
typedef typename std::iterator_traits<InputIterator>::value_type value_type;
|
||||
using std::cos;
|
||||
using std::sin;
|
||||
using sprout::cos;
|
||||
using sprout::sin;
|
||||
return first != last
|
||||
? value + sprout::detail::dft_element_gen(
|
||||
sprout::next(first),
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
#ifndef SPROUT_NUMERIC_DFT_FIXED_SINUSOID_HPP
|
||||
#define SPROUT_NUMERIC_DFT_FIXED_SINUSOID_HPP
|
||||
|
||||
#include <cmath>
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/index_tuple.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
|
|
@ -9,6 +8,7 @@
|
|||
#include <sprout/container/indexes.hpp>
|
||||
#include <sprout/algorithm/fixed/result_of.hpp>
|
||||
#include <sprout/math/constants.hpp>
|
||||
#include <sprout/math/sin.hpp>
|
||||
|
||||
namespace sprout {
|
||||
namespace fixed {
|
||||
|
|
@ -26,7 +26,7 @@ namespace sprout {
|
|||
)
|
||||
{
|
||||
typedef typename sprout::container_traits<Container>::value_type value_type;
|
||||
using std::sin;
|
||||
using sprout::sin;
|
||||
return sprout::remake<Container>(
|
||||
cont,
|
||||
size,
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
#ifndef SPROUT_NUMERIC_DFT_FIXED_SPECTRUM_HPP
|
||||
#define SPROUT_NUMERIC_DFT_FIXED_SPECTRUM_HPP
|
||||
|
||||
#include <cmath>
|
||||
#include <complex>
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/index_tuple.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/iterator/operation.hpp>
|
||||
#include <sprout/algorithm/fixed/result_of.hpp>
|
||||
#include <sprout/complex.hpp>
|
||||
#include <sprout/math/sqrt.hpp>
|
||||
#include HDR_ITERATOR_SSCRISK_CEL_OR_SPROUT
|
||||
|
||||
namespace sprout {
|
||||
|
|
@ -26,9 +26,9 @@ namespace sprout {
|
|||
typename sprout::container_traits<Result>::size_type input_size
|
||||
)
|
||||
{
|
||||
using std::sqrt;
|
||||
using std::real;
|
||||
using std::imag;
|
||||
using sprout::sqrt;
|
||||
using sprout::real;
|
||||
using sprout::imag;
|
||||
return sprout::remake<Result>(
|
||||
result,
|
||||
size,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue