-
Notifications
You must be signed in to change notification settings - Fork 7
/
matrix.h
30 lines (24 loc) · 1.04 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
/**********************************************
矩阵\向量相关计算的函数模块
作者:王雅仪
时间:2017.04.25
***********************************************/
#pragma once
#ifndef _MATRIX_H
#define _MATRIX_H
//头文件
#include <stdio.h>
#include <stdlib.h>
bool matrix_add(const int row1, const int col1, const int row2, const int col2, const double a[],
const double b[], double c[]);
bool matrix_minus(const int row1, const int col1, const int row2, const int col2, const double a[],
const double b[], double c[]);
bool matrix_multiply(const int row1, const int col1, const int row2, const int col2, const double a[],
const double b[], double c[]);
bool matrix_transfer(const int row1, const int col1, const double a[], double b[]);
bool matrix_inverse(int n, double a[], double b[]);
double vector_dot(const int row1, const int col1, const int row2, const int col2, const double a[],
const double b[]);
bool vector_cross(const int row1, const int col1, const int row2, const int col2, const double a[],
const double b[], double c[]);
#endif