Advertisement

内部定位程序设计

阅读量:

摄影测量课程的作业内容在网络上引发热议,可供相关学习者参考。
实际上,最关键的部分在于矩阵运算相关的函数实现,由于C++语言本身缺乏现成的矩阵运算库,因此必须自行编写对应函数。
以下代码中涉及矩阵操作的函数可以直接应用于实际开发中。
若需要完成内定向程序设计的相关任务,可以对框标坐标等参数进行调整,从而完善自身的程序设计。

复制代码
    #include<iostream>
    using std::cout;
    using std::cin;
    using std::endl;
    
    void PrintArray(double* a, int b, int c) {//打印矩阵	
    	for (int i = 0; i < b; i++) {
    		for (int j = 0; j < c; j++) {
    			cout << a[i * c + j] << " ";
    		}
    		cout << endl;
    	}
    }
    
    void TranspositionArray(double* a, double* aT, int b, int c) {//转置矩阵
    	for (int i = 0; i < b; i++) {
    		for (int j = 0;

全部评论 (0)

还没有任何评论哟~