A Matrix arithmetic engine built from scratch with Python OOP and dunder methods. Supports addition, subtraction, and multiplication — inspired by NumPy, built with pure Python.
- Matrix addition, subtraction, and multiplication
- Full dimension validation with clear error messages
- Dunder methods (
__add__,__sub__,__mul__,__repr__) - Modular design —
Matrixclass importable as a module - Foundation for a future NumPy-style custom library
git clone https://github.com/Ali-datasmith/matrix-calculator.git
cd matrix-calculator
# Run demo
python src/custom_calculator.py
# Run custom example
python src/main.py- OOP: Classes, Dunder/Magic Methods
- Matrix arithmetic logic from scratch
- Exception handling with dimension validation
- Modular Python (
__name__ == "__main__") - NumPy-inspired design thinking
Ali-datasmith — Python Developer
GitHub