A small package to implement basic linear algebra operations
Project description
linear_algebra
Motivation
- Review linear algebraby implementing concenpts in Python code
- Learn OOP in Python
Installation
pip install
Features
Completed
-
Vector
# Initialize vector v_1 = Vector(1, 2, 3) v_2 = Vector(4, 5, 6)
-
Add (+)
-
[in]: Vector(1, 2, 3) + Vector(4, 5, 6) [out]: Vecotr(5, 7, 9)
-
Subtract (-)
-
[in]: Vector(3, 2, 1) - Vector(1, 1, 1) [out]: Vector(2, 1, 0)
-
Multiply (*)
-
# scaler [in]: 2 * Vector(1, 2, 3) [out]: Vector(2, 4, 6) # inner product [in]: Vector(1, 2, 3) * Vector(1, 1, 1) [out]: 6
-
.norm
-
# .norm attribute of the vector is the length or magnitude of the # vector [in]: Vector(1, 2, 3).norm [out]: 3.7419573
To be Implemented
- Matrix
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
File details
Details for the file simple_linear_algebra-0.0.1.tar.gz.
File metadata
- Download URL: simple_linear_algebra-0.0.1.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
daade067be078003cf2d2846afb4eb81ce91adf9740c551013e76f373bb949c8
|
|
| MD5 |
8895c11163433ce44f60384ff62e5280
|
|
| BLAKE2b-256 |
db18545c74c92aced6addc1218d569109291f22de127629074daabcb633e62a3
|