The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

RiccardoRigon (2) [Avatar] Offline
#1
I am pretty sure that the question is probably stupid. Assume I have two Streams of int of the same length and I want to sum them, obtaining a unique stream containing their sum to be eventually reduced to a number, which is the template operation among two vectors. How can I do it? Is there some part of the book where I can find it ? Would you so kind to give me a hint ?

Thank you in advance for any help,

Riccardo
justin.musgrove (3) [Avatar] Offline
#2
Re: Making an operation between two streams
I think this should get you pretty close...

https://gist.github.com/justinmusgrove/9655266
RiccardoRigon (2) [Avatar] Offline
#3
Re: Making an operation between two streams
Thanks,

Ric