{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "8acc6bc7-884d-41d2-a87f-11e9d1915fe2",
   "metadata": {},
   "source": [
    "###  Homework 6 assignment due by 4/21/2026.\n",
    "OpenMP\n",
    "\n",
    "\n",
    "Get a source code for matrix addition/substraction from here:\n",
    "\n",
    "<TT>https://www.sanfoundry.com/c-program-addition-subtraction-trace-matrices/<TT>\n",
    "\n",
    "copy/paste it into file ```matrix.c```\n",
    "\n",
    "A) Compile it and run for 4 x 4 matrices.\n",
    "\n",
    "B) By using Open MP, parallelize both the inner and the outer loops for ```arraysum[i][j]```, ```arraydiff[i][j]```, and  ```trace```\n",
    "\n",
    "C) Compile the code and run it with 2 threads."
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.13.11"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
