#include #include #include void initMatrix(size_t m, size_t n, double *A, ptrdiff_t incRow, ptrdiff_t incCol) { for (size_t i=0; i A(:, 3)\n"); // *** Your code here *** printMatrix(m, n, A, incRow, incCol); // 2) dswap printf("A(3,:) <-> A(1,:)\n"); // *** Your code here *** printMatrix(m, n, A, incRow, incCol); // 3) daxpy printf("2.5*A(0,:) + A(2,:) -> A(2,:)\n"); // *** Your code here *** printMatrix(m, n, A, incRow, incCol); // 4) dscal printf("0.5*A(:,5) -> A(:,5)\n"); // *** Your code here *** printMatrix(m, n, A, incRow, incCol); // Deallocate matrix A free(A); }