![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
algorithm
文章平均质量分 77
wmmthu
这个作者很懒,什么都没留下…
展开
-
C#矩阵求逆
在做图像处理的透视变换的时候,需要用到矩阵求逆,c#里没有类库,就动手写一个,其实思想很简单,和线性代数课上学的一样,将待求逆矩阵和单位阵写在一起,把待求逆矩阵变换成单位阵,单位阵就变成逆矩阵了。 using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace原创 2012-04-24 08:55:13 · 8844 阅读 · 3 评论 -
翻转单向链表
在cnbeta上看到的,就自己写一写,练下链表和递归。 #include #include using namespace std; struct Node { Node(int n){ num=n; next=NULL; } int num; Node* next; }; Node* head; Node* tail(Node* p) { if(p==NULL原创 2012-05-14 18:38:09 · 299 阅读 · 0 评论