I am trying to do the following mathematical operation with two vectors:
v1 = [a1][a2][a3][a4][a5] v2 = [b1][b2][b3][b4]b5]
Want to compute:
You could look into std::valarray. It's designed to allow mathematical operations on every element in the array.