Skip to content

rvbnsk/matrix_lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CI

matrix_lib

C++ library for matrix storage and easy management.

Template matrix STL-like container provides easy to use matrix objet. Matrices can be managed using provided mathematical operations and functions.

Examples of use:

Multiplication:

mtl::Matrix<int, 2, 2> matrix { {1, 2},
                                {3, 4} };
mtl::Matrix<int, 2, 2> matrix2(5);

const auto result = matrix * matrix2;

Result:

Matrix of type:

mtl::Matrix<int, 2, 2>

With given values:

15 15
35 35

Determinant:

mtl::Matrix<unsigned int, 3, 3> matrix { {7, 2, 9},
                                         {4, 5, 3},
                                         {2, 6, 7} };
matrix.det();

Result:

201

Transposition:

mtl::Matrix<double, 2, 3> matrix { {1, 2, 3},
                                   {4, 5, 6} };
const auto result = matrix.transpose();

Result:

Matrix of type:

mtl::Matrix<double, 3, 2>

With given values:

1 4
2 5
3 6

About

C++ library for C-style matrix operations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors