I was wondering: is there a (more elegant, and preferably more efficient) way to do this:
vector1[i] = a*vector2[i] + (1-a)*vector3[i];
for every element of the vector without looping through the vectors myself. (with vectors of floats)
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 8 of 8
Threaded View
|
Click Here to Expand Forum to Full Width |