|
template<typename InputIterator1 , typename InputIterator2 , typename OutputIterator , check_product< value_type_i< InputIterator1 >, value_type_i< InputIterator2 >, value_type_i< OutputIterator >> = nullptr> |
void | aaa::multiply (InputIterator1 first_left, InputIterator1 last_left, InputIterator2 first_right, OutputIterator first_out) |
|
template<typename Element , typename InputIterator , typename OutputIterator , check_product< Element, value_type_i< InputIterator >, value_type_i< OutputIterator >> = nullptr> |
void | aaa::multiply (const Element &left, InputIterator first_right, InputIterator last_right, OutputIterator first_out) |
|
template<typename InputIterator , typename Element , typename OutputIterator , check_product< value_type_i< InputIterator >, Element, value_type_i< OutputIterator >> = nullptr> |
void | aaa::multiply (InputIterator first_left, InputIterator last_left, const Element &right, OutputIterator first_out) |
|
template<typename Container1 , typename Container2 , typename Container3 , check_product< value_type< Container1 >, value_type< Container2 >, value_type< Container3 >> = nullptr> |
void | aaa::multiply (const Container1 &left, const Container2 &right, Container3 &out) |
|
template<typename Element , typename Container1 , typename Container2 , check_product< Element, value_type< Container1 >, value_type< Container2 >> = nullptr> |
void | aaa::multiply (const Element &left, const Container1 &right, Container2 &out) |
|
template<typename Container1 , typename Element , typename Container2 , check_product< value_type< Container1 >, Element, value_type< Container2 >> = nullptr> |
void | aaa::multiply (const Container1 &left, const Element &right, Container2 &out) |
|
template<typename Container > |
Container | aaa::multiply (const Container &left, const Container &right) |
|
template<typename Container > |
Container | aaa::multiply (const Container &left, const value_type< Container > &right) |
|
template<typename Container > |
Container | aaa::multiply (const value_type< Container > &left, const Container &right) |
|
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 = multiply(in1, in2);
out = multiply(2.5, in2);
out = multiply(in1, 3.3);
multiply(in3, in4, out);
multiply(4.9, in4, out);
multiply(in3, 2.1, out);
multiply(begin(in5) + 1, begin(in5) + 6, begin(in4), begin(out));
multiply(4.9, begin(in5) + 1, begin(in5) + 6, begin(out));
multiply(begin(in5) + 1, begin(in5) + 6, 2.1, begin(out));