-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmatrix.h
36 lines (26 loc) · 1.32 KB
/
matrix.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include <iostream> // Allows input output operations
#include <iomanip>
#include <math.h>
#include <cstdio>
#define N 200
#define ARRAY_SIZE (N*N)
#define M 100
using namespace std;
/*******************************************************************************
* Function Name : determinant
* Description : Given a square matrix array[][]. Calculates determinant.
*******************************************************************************/
float determinant(float array[N][N],float order);
/*******************************************************************************
* Function Name : inverse
* Description : Given a square matrix array[][]. Calculates inverse_array.
*******************************************************************************/
void inverse(float inv[N][N],float array[N][N],float order);
/*************************************************************
Function: multiply
Description: Matrix multiplication, First Matrix is the Product,
second & Third are matrices to be multiplied,
next 2 integers are row and columns of First Matrix
Next 2 Integers are row and columns of second Matrix
******************************************************/
void multiply(float cipher[N][N],float array1[N][N],float array2[N][N], int order_1,int order_2,int marker_1,int marker_2);