vx
Vector and linear algebra toolbelt for NumPy.
Features
normalizenormalizes a vector.sprojcomputes the scalar projection of one vector onto another.projcomputes the vector projection of one vector onto another.rejectcomputes the vector rejection of one vector from another.reject_axiszeros or squashes one component of a vector.magnitudecomputes the magnitude of a vector.anglecomputes the unsigned angle between two vectors.signed_anglecomputes the signed angle between two vectors.almost_zerotests if a vector is almost the zero vector.almost_collineartests if two vectors are almost collinear.pad_with_onesadds a column of ones.unpadstrips off a column (e.g. of ones).apply_homogeneousapplies a transformation matrix using homogeneous coordinates.- Complete documentation: http://vx.readthedocs.io/
Installation
pip install numpy vector_shortcuts
Usage
import numpy as np
import vx
projected = vx.sproj(np.array([5.0, -3.0, 1.0]), onto=vx.basis.neg_y)
Contribute
- Issue Tracker: https://github.com/metabolize/vx/issues
- Source Code: https://github.com/metabolize/vx
Pull requests welcome!
Support
If you are having issues, please let us know.
Acknowledgements
This collection was developed at Body Labs by Paul Melnikow and extracted from the Body Labs codebase and open-sourced as part of blmath by Alex Weiss. blmath was subsequently forked by Paul Melnikow and later this namespace was broken out into its own package.
License
The project is licensed under the two-clause BSD license.
Metadata
Release files for vector-shortcuts 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| vector_shortcuts-0.2.1.tar.gz | 8.2 kB | Details |
Release files / vector_shortcuts-0.2.1.tar.gz
| Download URL | vector_shortcuts-0.2.1.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5f7dc2f9d739b402377b4946aa92dfd03ed7298c98269eb647af70ef3b94b080
|
|
BLAKE2b-256 checksum How to use checksums |
09aa7eabe69f6793ce1cf2b7010ede6b2c65eb403e2dddcabc5124b1daac51e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.9.1 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.16
|