Boost logo

Boost :

From: Noel Yap (yap_noel_at_[hidden])
Date: 2002-05-28 16:35:58


I would like to gauge the need for a generic
cross_product algorithm (similar to inner_product). I
have found it handy in initializing a matrix from two
vectors.

Here's the prototype:
    template<
        typename InputIterator1,
        typename InputIterator2,
        typename OutputIterator,
        typename BinaryFunction >
    void
    cross_product(
        typename boost::call_traits< InputIterator1
>::param_type first1,
        InputIterator1 last1,
        typename boost::call_traits< InputIterator2
>::param_type first2,
        InputIterator2 last2,
        OutputIterator result,
        BinaryFunction op);

If there is interest, I would like to submit the code
for review.

Thanks,
Noel

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk