Skip to content

matrix.h

Bhamidipati Venkatakrishnasameer edited this page Jun 11, 2024 · 1 revision

matrix.h

Add this to your file #include "matrix.h"

matrix class is used to validate a 2d array as a matrix

vector<vector<float>> matrix_add(matrix * A, matrix * B) : Adds 2 given matrices

vector<vector<float>> transpose(matrix* A) : Gives transpose of a given matrix

vector<vector<float>> matrix_product(matrix* A, matrix* B) : Gives product of 2 matrices

float determinant(matrix* A) : Gives the determinant of a Matrix

vector<vector<float>> adjoint(matrix* A) : Gives adjoint of a given matrix

vector<vector<float>> inverse(matrix* A) : Gives Inverse of a matrix