Maximum of matrix vector product for "large" matrices

@YingboMa @shashi could this be fixed by using the MuladdMacro expression changing on the generated code?