$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Geoffrey Irving (irving_at_[hidden])
Date: 2006-09-15 00:01:30
On Fri, Sep 15, 2006 at 03:28:39AM +0100, Andy Little wrote:
> Then I guess in fusion you would do :
>
> fusion::inner_product<SequenceA, SequenceB,Function1,Function2>{...}
>
> fusion::dot_product<SequenceA, SequenceB>
> : fusion::inner_product<
> SequenceA,SequenceB,
> boost:functional::multiplies,boost::functional::plus
> >{};
Just to clarify the terminology: that inner_product function is still
essentially a dot product. A dot_product is anything that looks like
product = x*x + y*y + z*z + ...
where + and * can be any ring operations. A general inner product
function would have to allow for cross terms, e.g.,
product = a*x*x + b*x*y + c*y*y + ...
So, I'd go for calling everything dot_product and giving it default
arguments for + and *.
Geoffrey