https://github.com/kiritofeng/physics_h
Header files for some linear algebra operations
https://github.com/kiritofeng/physics_h
cpp cpp-library fft linear-algebra
Last synced: about 2 months ago
JSON representation
Header files for some linear algebra operations
- Host: GitHub
- URL: https://github.com/kiritofeng/physics_h
- Owner: kiritofeng
- Created: 2018-06-26T01:42:10.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-11-01T17:44:33.000Z (over 7 years ago)
- Last Synced: 2025-12-27T15:57:42.005Z (7 months ago)
- Topics: cpp, cpp-library, fft, linear-algebra
- Language: C++
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# physics\_h
Header files for some common (and not so common) linear algebra operations.
## `fft.h`
An FFT implementation in C++, using complex numbers and trigonometric functions.
The function `fft` takes an `std::vector` of `std::complex` and returns the coefficients of the complex representation of the covolution.
Pass `inv = 1` to preform the covolution and `inv = -1` to preform an inverse FFT.
## `matrix.h`
Contains a matrix class, which defines:
- Addition
- Subtraction
- Multiplication
- Inverse
- Determinant
- Transpose
## `gauss.h`
Solves a systems of linear equations.
## `vector.h`
Contains a vector class, which defines:
- Addition
- Subtraction
- Multiplication (by a constant)
- Cross Product
- Dot Product
- Magnitude
- Normalization