This repository implements vectors and matrices in pure Python to understand the mathematical concepts behind AI/ML. It includes functions for vector and matrix operations such as addition, multiplication, and determinant calculation.
From the README
Linear Algebra Implementing vectors, matrices, and other linear algebra concepts in pure Python to deeply understand the math behind AI/ML. Features Currently implemented: Vectors • Vector addition (add) • Scalar multiplication (scalarmultiply) • Magnitude calculation (magnitude) • Unit vector computation (unitvector) • Dot product (dot) • Angle between vectors (anglebtnvectors) • Cosine similarity (cossimilarity) Matrices • Matrix addition (add) • Matrix multiplication (multiply) • Transpose (transpose) • Validate shape (validateshape) • Print matrix (show) • Generate identity matrix (identity) • Dynamic inverse of square matrices (inverse) • Determinant calculation (det) • Recursive...
Skills
- Python
- from-scratch
- linear-algebra
- machine-learning
- numerical-methods
- python