# write a function that does the 2 following tasks in c: /* identity(M, size) Set the elements of the

**write a function that does the 2 following tasks in c:** /* identity(M, size) Set the elements of the provided matrix M to be an identity matrix of the specified size. Do not set any other elements outside the bounds of the requested size. By definition, the identity matrix is square (so the number of rows and the number of columns are equal).*/void identity(Matrix M, int size); /* matrix_vector_multiply(A, V, Vout, rows, cols) Given an n x k matrix A and a vector V (which will have k entries), compute the product A*V (which will have n entries) and store the product in the provided output vector Vout. Do not set any elements of Vout outside of the required elements for the computation. Do not modify any elements of the input matrices A and B or the input vector V.*/void matrix_vector_multiply(Matrix A, Vector V, Vector Vout, int n, int k); Asked Mar. 02, 2018 Attached