|
template<typename InputIterator , typename OutputIterator > |
void | aaa::negate (InputIterator first_in, InputIterator last_in, OutputIterator first_out) |
|
template<typename Container1 , typename Container2 > |
void | aaa::negate (const Container1 &in, Container2 &out) |
|
template<typename Container > |
Container | aaa::negate (const Container &in) |
|
Examples:
std::vector<double> in1 = { 1.1, 2.2, 3.3, 4.4, 5.5 };
std::vector<double> in2 = { 1.1, 2.2, 3.3, 4.4, 5.5 };
std::valarray<double> in3 = { 1.1, 2.2, 3.3, 4.4, 5.5 };
std::array<double, 5> in4 = { 1.1, 2.2, 3.3, 4.4, 5.5 };
std::array<double, 9> in5 = { 1.1, 2.2, 3.3, 4.4, 5.5, 6.6, 7.7, 8.8, 9.9 };
std::vector<double> out = { 1.1, 2.2, 3.3, 4.4, 5.5 };
out = negate(in1);
negate(in3, out);
negate(begin(in5) + 1, begin(in5) + 6, begin(out));