๐Ÿ“ฆ 0-Chan / algorithm-in-C

๐Ÿ“„ MatMul.h ยท 17 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17#ifndef _MAT_MUL_H
#define _MAT_MUL_H

typedef struct
{
    int row;
    int col;
    int* elements;
} Matrix, * pMatrix;

int getMat(int inputCnt, char* txtFiles[], Matrix* inMat);
int mulMat(Matrix mat1, Matrix mat2, Matrix* resMat);
void printMat(Matrix mat);
void checkError(int errorCode);


#endif