So instead of something like:
you would have:
The actual calculation being done with c++ operators. Results var and iteration var may be unnecessary but width is essential. The $ in front of Amplitude indicates its a scalar to avoid needing to do to much c++ parsing.
Code:
for (int i = 0; i < ArrayCount; i++)
{
a_Array[i] *= Amplitude;
}
Code:
@StartVectorCalc(ArrayCount,i,a_Array)
a_Array *= $Amplitude;
@EndVectorCalc
The actual calculation being done with c++ operators. Results var and iteration var may be unnecessary but width is essential. The $ in front of Amplitude indicates its a scalar to avoid needing to do to much c++ parsing.