![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c++
文章平均质量分 50
小星星恋上大太阳
IT行业的女码农
展开
-
Matlab中QR分解的C++代码
void QR(double *a,int a_row,int a_colunm,double* q,double *r1){ //QR分解 int i,j,k,r,m; double temp,sum,dr,cr,hr; double *ur=new double[a_row*a_row]; double *pr=new double[a_row*a_row]; do原创 2012-06-06 16:35:30 · 1571 阅读 · 0 评论 -
Matlab中矩阵的乘法C++代码
void Matrix_Multip(double*A_matrix,double *B_matrix,double*AB_matrix,int A_Rows,int A_Colunms,int B_Rows,int B_Colunms){ //矩阵乘法 double*AB_matrix最后的结果 for (int i=0;i { for (int j=0;j {原创 2012-06-06 16:37:14 · 1666 阅读 · 1 评论 -
Matlab求矩阵的逆矩阵的C++代码
void Inverse_Matrix(double * Ora_Matrix,int m_Image_Rows,int m_Image_Colunms){ //求矩阵的逆矩阵 int rows=m_Image_Rows; int colunms=m_Image_Colunms; double *Re_Matrix=new double[2*rows*colunms]; f原创 2012-06-06 16:38:51 · 1405 阅读 · 1 评论 -
计算给定两点的法向量
VECTOR GetVector(float * v1,float * v2,float * v3) { //计算给定两向量的法向量 VECTOR vec1; vec1.x = v2[0] - v1[0]; vec1.y = v2[1] - v1[1]; vec1.z = v2[2] - v1[2]; VECTOR vec2; vec2.x = v3[0]- v1原创 2012-11-27 15:35:15 · 2949 阅读 · 0 评论