Skip to content

A lightweight and header only linear algebra library.

License

Notifications You must be signed in to change notification settings

mohammadmohebi/gauss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation


Gauss

A lightweight and header only linear algebra library

This library does not have dependencies besides the standard C++ library. Furthermore only std::vector container is used to create a matrix structure. This way that library can be integrated into any project. The syntax used inside the library source code is compatible with most of C++ version compilers.

Matrix multiplication.

#include "gauss.hpp"

// gauss::matrix --> typedef std::vector<std::vector<double> > matrix;
gauss::matrix A {
    {2, 1, 4},
    {0, 1, 1}
};

gauss::matrix B {
    { 6, 3, -1, 0},
    { 1, 1,  0, 4},
    {-2, 5,  0, 2}
};

gauss::matrix C = gauss::MatrixMulti(A, B);

Features

  • Vector
  • Vector norm
  • Angle between two vector
  • Matrix
  • Identity matrix
  • Diagonal matrix
  • Cross product
  • Dot product
  • Matrix multiplication
  • Matrix determinant
  • Matrix row and column swap

More features are going to be developed.

About

A lightweight and header only linear algebra library.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages