Homework 6 assignment due by 4/21/2026.#
OpenMP
Get a source code for matrix addition/substraction from here:
https://www.sanfoundry.com/c-program-addition-subtraction-trace-matrices/
copy/paste it into file matrix.c
A) Compile it and run for 4 x 4 matrices.
B) By using Open MP, parallelize both the inner and the outer loops for arraysum[i][j], arraydiff[i][j], and trace
C) Compile the code and run it with 2 threads.