- 博客(2)
- 收藏
- 关注
原创 稀疏矩阵的快速逆置和相加
//快速逆置 SparseMatrix<T> FastTransport() { SparseMatrix<T> sm; sm._col = _row; sm._row = _col; sm._invalid = _invalid; //成功逆置后,每行有效元素的个数 int *ptr = new int[_col]; memset(pt...
2017-12-01 15:11:49 421
原创 稀疏矩阵的三元组存储和逆置
template<class T> class SparseMatrix {public: template<class T> struct trituple { trituple(int row=0, int col=0, const T&data=T()) :_row(row) , _col(col) , _data(data) ...
2017-12-01 15:09:15 510
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人