Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonathanhliu21/simplevectors
Simple vector implementations in C++
https://github.com/jonathanhliu21/simplevectors
Last synced: about 2 months ago
JSON representation
Simple vector implementations in C++
- Host: GitHub
- URL: https://github.com/jonathanhliu21/simplevectors
- Owner: jonathanhliu21
- License: mit
- Created: 2022-08-07T15:58:07.000Z (over 2 years ago)
- Default Branch: develop
- Last Pushed: 2024-05-24T01:47:47.000Z (8 months ago)
- Last Synced: 2024-06-21T22:29:25.643Z (7 months ago)
- Language: C++
- Homepage: https://jonathanhliu21.github.io/simplevectors/
- Size: 953 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Simplevectors
Simple, embeddable, and extendable vector implementations in C++.
**Note**: C++11 or higher is needed for this library.
**Note**: This is mostly tested on MacOS 12.6 with C++11, clang 13.0.0, CMake 3.22.2, and GNU make 3.81.
![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/jonathanhliu21/simplevectors/test.yml)
![GitHub Docs Status](https://img.shields.io/github/actions/workflow/status/jonathanhliu21/simplevectors/doc.yml?label=docs)## Links
- Source Code:
- Documentation:## Quickstart
This is a very basic example of simplevectors. First, download `simplevectors.hpp` from the releases page on the GitHub repository, then paste the code below:
```cpp
#include "path/to/simplevectors.hpp"int main(){
svector::Vector<2> vector2; // creates a 2D-vector
svector::Vector2D
vector2d; // creates a 2D-vector with 2D-specific functionalitysvector::Vector<3> vector3; // creates a 3D-vector
svector::Vector3D
vector3d; // creates a 3D-vector with 3D-specific functionalitysvector::Vector<4> vector4; // creates a 4D-vector
}
```## License
MIT License (© 2023 Jonathan Liu)