2nd_Sem_Bogachev/2025.04.04/dist/Krivoruchenko_SK/matrix.h

10 lines
444 B
C

#ifndef MATRIX_H
#define MATRIX_H
void init_vec_b(const double * restrict a, double * restrict b, int n);
void matvec_mul(int n, const double * restrict A, const double * restrict x, double * restrict x_k);
double get_r1(const int n, const double * restrict A, const double * restrict X);
double get_r2(const int n, const double * restrict A, const double * restrict X);
double get_matrix_norm(const int n, const double * restrict A);
#endif