A Python library for matrix multiplication with support for different dimensions
Project description
alumath_peergroup_6
A comprehensive Python library for matrix multiplication with support for different dimensions and broadcasting.
Features
- Standard Matrix Multiplication: Classic A × B multiplication
- Element-wise Multiplication: Hadamard product for same-dimension matrices
- Broadcasting Support: Intelligent dimension handling for compatible matrices
- Comprehensive Error Handling: Clear error messages for invalid operations
- Pure Python: No external dependencies required
- Type Hints: Full type annotation support
- Extensive Documentation: Complete API documentation and examples
Installation
```bash pip install alumath_peergroup_6 ```
Quick Start
from alumath_peergroup_6 import Matrix, multiply
# Create matrices
matrix_a = Matrix([[1, 2], [3, 4]])
matrix_b = Matrix([[5, 6], [7, 8]])
# Standard matrix multiplication
result = multiply(matrix_a, matrix_b, method="standard")
print(result)
# Element-wise multiplication
result = multiply(matrix_a, matrix_b, method="hadamard")
print(result)
# Broadcasting multiplication
scalar = Matrix([[2]])
result = multiply(matrix_a, scalar, method="broadcast")
print(result)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file alumath_peergroup_6-1.0.0.tar.gz.
File metadata
- Download URL: alumath_peergroup_6-1.0.0.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74d9213b304ca828a919523eb23dddef4a6c6e28a0cc970e547ceeff05cd05f4
|
|
| MD5 |
cf4046628a07b85d013edc7eeb827a79
|
|
| BLAKE2b-256 |
82cb650a44211b6b18e66ed65913e3e1647e0cf4d20c669065a0c4038f2e5e3f
|
File details
Details for the file alumath_peergroup_6-1.0.0-py3-none-any.whl.
File metadata
- Download URL: alumath_peergroup_6-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78e159c9c344b3a73fa7b893f4a7df533b2a37dcde518a7be775ce043a0be7a9
|
|
| MD5 |
0b81bfa5b2faf765aba11b18accd65d0
|
|
| BLAKE2b-256 |
b7fb142477d07212ad23baa38aaf63634acddac77f1c9c9d03386b895f940f38
|