Lab_1 0.1.1
Matrix Library
Loading...
Searching...
No Matches
Lab_1

Introduction

Matrix is a C++ library for working with matrices. It provides a simple and efficient way to perform common matrix operations, such as addition, multiplication, and inversion. The library is designed to be easy to use and provides a lot of useful functions for working with matrices.

Features

The main features of the library are:

  • Matrix operations: addition, subtraction, multiplication, division, determinant, inverse, transpose, rank, etc.

Requirements

The library requires C++17 or higher to compile.

Example

Here is an example of how to use the library:

#include <iostream>
#include "matrix.h"
int main() {
linalg::Matrix a(2, 2);
a(0, 0) = 1;
a(0, 1) = 2;
a(1, 0) = 3;
a(1, 1) = 4;
Matrix b = { {1, 2, 3}, {4, 5, 6}, {7, 8, 9} };
Matrix c = linalg::power(b, 2);
std::cout << b << c;
return 0;
}
Definition matrix.h:50