An open API service indexing awesome lists of open source software.

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

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