# okayamat/matrix-log-de architecture

> Architecture diagram of the GitHub repository okayamat/matrix-log-de, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/okayamat/matrix-log-de
- Repository: https://github.com/okayamat/matrix-log-de

## Overview

This repository packages MATLAB implementations of three double-exponential matrix-logarithm algorithms alongside scripts and data for numerical experiments. The documented workflow is to load a size-specific orthogonal matrix, construct test matrices with selected condition numbers, run error/timing comparisons or an error-bound experiment, and write tab-delimited results. The README documents these relationships; source excerpts were not available, so the graph does not infer additional implementation details.

Main entry points: [`PointError.m`](https://github.com/okayamat/matrix-log-de/blob/main/PointError.m) (Point-error study), [`TimeError.m`](https://github.com/okayamat/matrix-log-de/blob/main/TimeError.m) (Timing study), [`ErrorBound.m`](https://github.com/okayamat/matrix-log-de/blob/main/ErrorBound.m) (Error-bound study), [`50/Qdata.csv`](https://github.com/okayamat/matrix-log-de/blob/main/50/Qdata.csv) (Q matrices)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_algorithms["Algorithms"]
  node_alg1["Original Alg 1<br/>[OriginalAlg1.m]"]
  node_alg2["Improved Alg 2<br/>[ImprovedAlg2.m]"]
  node_alg3["Improved Alg 3<br/>[ImprovedAlg3.m]"]
end

subgraph group_experiments["Experiments"]
  node_point["Point-error study<br/>[PointError.m]"]
  node_time["Timing study<br/>[TimeError.m]"]
  node_bound["Error-bound study<br/>[ErrorBound.m]"]
end

subgraph group_data["Experiment Data"]
  node_inputs["Q matrices<br/>[Qdata.csv]"]
  node_outputs["Experiment outputs"]
end

node_user(("MATLAB user"))

node_user -->|"runs"| node_point
node_user -->|"runs"| node_time
node_user -->|"runs"| node_bound
node_inputs -->|"supplies Q"| node_point
node_inputs -->|"supplies Q"| node_time
node_inputs -->|"supplies Q"| node_bound
node_point -->|"compares errors"| node_alg1
node_point -->|"compares errors"| node_alg2
node_point -->|"compares errors"| node_alg3
node_time -->|"times"| node_alg1
node_time -->|"times"| node_alg2
node_time -->|"times"| node_alg3
node_bound -->|"gets error bound"| node_alg3
node_point -->|"writes results"| node_outputs
node_time -->|"writes results"| node_outputs
node_bound -->|"writes bounds"| node_outputs

click node_alg1 "https://github.com/okayamat/matrix-log-de/blob/main/OriginalAlg1.m"
click node_alg2 "https://github.com/okayamat/matrix-log-de/blob/main/ImprovedAlg2.m"
click node_alg3 "https://github.com/okayamat/matrix-log-de/blob/main/ImprovedAlg3.m"
click node_point "https://github.com/okayamat/matrix-log-de/blob/main/PointError.m"
click node_time "https://github.com/okayamat/matrix-log-de/blob/main/TimeError.m"
click node_bound "https://github.com/okayamat/matrix-log-de/blob/main/ErrorBound.m"
click node_inputs "https://github.com/okayamat/matrix-log-de/blob/main/50/Qdata.csv"

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_alg1,node_alg2,node_alg3,node_user toneBlue
class node_point,node_time,node_bound toneAmber
class node_inputs,node_outputs toneMint
```

## Components

### Algorithms

- [Original Alg 1](https://github.com/okayamat/matrix-log-de/blob/main/OriginalAlg1.m): `OriginalAlg1.m`
- [Improved Alg 2](https://github.com/okayamat/matrix-log-de/blob/main/ImprovedAlg2.m): `ImprovedAlg2.m`
- [Improved Alg 3](https://github.com/okayamat/matrix-log-de/blob/main/ImprovedAlg3.m): `ImprovedAlg3.m`

### Experiments

- [Point-error study](https://github.com/okayamat/matrix-log-de/blob/main/PointError.m): `PointError.m`
- [Timing study](https://github.com/okayamat/matrix-log-de/blob/main/TimeError.m): `TimeError.m`
- [Error-bound study](https://github.com/okayamat/matrix-log-de/blob/main/ErrorBound.m): `ErrorBound.m`

### Experiment Data

- [Q matrices](https://github.com/okayamat/matrix-log-de/blob/main/50/Qdata.csv): `50/Qdata.csv`
- **Experiment outputs**

### Other components

- **MATLAB user**

## Connections

- MATLAB user → Point-error study: runs (evidence: `README.md`)
- MATLAB user → Timing study: runs (evidence: `README.md`)
- MATLAB user → Error-bound study: runs (evidence: `README.md`)
- Q matrices → Point-error study: supplies Q (evidence: `README.md`)
- Q matrices → Timing study: supplies Q (evidence: `README.md`)
- Q matrices → Error-bound study: supplies Q (evidence: `README.md`)
- Point-error study → Original Alg 1: compares errors (evidence: `README.md`)
- Point-error study → Improved Alg 2: compares errors (evidence: `README.md`)
- Point-error study → Improved Alg 3: compares errors (evidence: `README.md`)
- Timing study → Original Alg 1: times (evidence: `README.md`)
- Timing study → Improved Alg 2: times (evidence: `README.md`)
- Timing study → Improved Alg 3: times (evidence: `README.md`)
- Error-bound study → Improved Alg 3: gets error bound (evidence: `README.md`)
- Point-error study → Experiment outputs: writes results (evidence: `README.md`)
- Timing study → Experiment outputs: writes results (evidence: `README.md`)
- Error-bound study → Experiment outputs: writes bounds (evidence: `README.md`)
