// // File: xaxpy.cpp // // MATLAB Coder version : 5.2 // C/C++ source code generated on : 24-Mar-2023 11:40:08 // // Include Files #include "fun9_xaxpy.h" #include "rt_nonfinite.h" #include "coder_array.h" // Function Definitions // // Arguments : int n // double a // int ix0 // ::coder::array &y // int iy0 // Return Type : void // namespace coder { namespace internal { namespace blas { void xaxpy(int n, double a, int ix0, ::coder::array &y, int iy0) { if ((n >= 1) && (!(a == 0.0))) { int i; i = n - 1; for (int k{0}; k <= i; k++) { int i1; i1 = (iy0 + k) - 1; y[i1] = y[i1] + a * y[(ix0 + k) - 1]; } } } } // namespace blas } // namespace internal } // namespace coder // // File trailer for xaxpy.cpp // // [EOF] //