Optimize the FactorizationMachinesNative.cpp, by:
1- switching the control variables of the for loops from post-increment to pre-increment, to avoid the extra storage
2- Optimize the intermediate calculations on the current tight loops for better performance.
Example:
for (int fprime = 0; fprime < m; fprime++)
{
const int vBias = j * m * d + fprime * d;
const int qBias = f * m * d + fprime * d;
3- Potentially substitute AlignedArray with a regular array. See the discussion on PR #383
Optimize the FactorizationMachinesNative.cpp, by:
1- switching the control variables of the for loops from post-increment to pre-increment, to avoid the extra storage
2- Optimize the intermediate calculations on the current tight loops for better performance.
Example:
for (int fprime = 0; fprime < m; fprime++)
{
const int vBias = j * m * d + fprime * d;
const int qBias = f * m * d + fprime * d;
3- Potentially substitute AlignedArray with a regular array. See the discussion on PR #383