File: mtrix.h

package info (click to toggle)
cmix 2.0.12-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 6,920 kB
  • ctags: 6,063
  • sloc: cpp: 27,139; ansic: 11,924; sh: 2,795; exp: 2,270; yacc: 1,724; makefile: 1,247; lex: 488; perl: 278
file content (12 lines) | stat: -rw-r--r-- 317 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
#define M 25

typedef struct matrix { float e[M][M]; } matrix;
typedef struct vector { float e[M]; } vector;

vector solve(matrix A, vector B);
vector mulMatVec(matrix A, vector x);
char* printMatrix(matrix A);
char* printVector(vector B);
matrix makeMatrix(unsigned int seed);
vector makeVector(unsigned int seed);