# sskeme/eeee346-f26-hw9 architecture

> Architecture diagram of the GitHub repository sskeme/eeee346-f26-hw9, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sskeme/eeee346-f26-hw9
- Repository: https://github.com/sskeme/eeee346-f26-hw9

## Overview

This small C++ homework program demonstrates templated math functors through a `MathUtility` workflow: `main` supplies integer and double arrays, displays their original values, then requests absolute-value and power transformations and displays the results. The header excerpt leaves the functor and transformation implementations as TODOs, so their internal call relationships are supported by the README rather than inspected implementations.

Main entry points: [`myMath.h`](https://github.com/sskeme/eeee346-f26-hw9/blob/main/myMath.h) (MathUtility), [`main.cpp`](https://github.com/sskeme/eeee346-f26-hw9/blob/main/main.cpp) (Demo Entry Point)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_main["Demo Entry Point<br/>[main.cpp]"]
node_utility["MathUtility<br/>[myMath.h]"]
node_absolute["Absolute Functor<br/>[myMath.h]"]
node_power["Power Functor<br/>[myMath.h]"]

node_main -->|"constructs and calls"| node_utility
node_utility -->|"applies to elements"| node_absolute
node_utility -->|"raises elements"| node_power

click node_main "https://github.com/sskeme/eeee346-f26-hw9/blob/main/main.cpp"
click node_utility "https://github.com/sskeme/eeee346-f26-hw9/blob/main/myMath.h"
click node_absolute "https://github.com/sskeme/eeee346-f26-hw9/blob/main/myMath.h"
click node_power "https://github.com/sskeme/eeee346-f26-hw9/blob/main/myMath.h"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_main,node_utility,node_absolute,node_power toneTeal
```

## Components

### Other components

- [Demo Entry Point](https://github.com/sskeme/eeee346-f26-hw9/blob/main/main.cpp): `main.cpp`
- [MathUtility](https://github.com/sskeme/eeee346-f26-hw9/blob/main/myMath.h): `myMath.h`
- [Absolute Functor](https://github.com/sskeme/eeee346-f26-hw9/blob/main/myMath.h): `myMath.h`
- [Power Functor](https://github.com/sskeme/eeee346-f26-hw9/blob/main/myMath.h): `myMath.h`

## Connections

- Demo Entry Point → MathUtility: constructs and calls (evidence: `main.cpp`)
- MathUtility → Absolute Functor: applies to elements (evidence: `README.md`)
- MathUtility → Power Functor: raises elements (evidence: `README.md`)
