The application consumes a backend API hosted at:
https://random-matrix-api.onrender.com/mp
Endpoints:
/theo– provides data for the theoretical distribution, based on the article link./hist– provides data for the empirical distribution, generated using Monte Carlo simulations.
Random Matrix API provides a REST API for generating random matrices and performing basic numerical operations.
It is designed to support a web application that visualizes matrix properties and results from Random Matrix Theory.
The backend is implemented in Python using the FastAPI framework. Key components:
- Pydantic – defines data schemas for input validation and JSON parsing.
- Uvicorn ASGI server – handles HTTP requests and communication between client and backend.
- Middleware allows cross-origin requests from any domain with any HTTP methods and headers.
- Generate random matrices
- Perform basic matrix operations
- Numerical analysis of matrix properties
- JSON-based REST API for frontend integration
Clone the repository and install dependencies (including the computation package from GitHub):
git clone https://github.com/Krzemon/random-matrix-api.git
cd random-matrix-api
pip install -r requirements.txtPackage repository: https://github.com/Krzemon/mp-package
uvicorn app.main:app --reload --host 0.0.0.0 --port 8000