Description: Matrix addition (triples):
First create a sparse matrix storage structure triples. Enter the first matrix of rows and columns and the number of non-zero elements, and enter the location and size of the nonzero elements. Enter the second matrix and enter the number of non-zero elements of the location and size of the nonzero elements. Then deal with these two matrices: If non-zero elements of the matrix a value equal to the matrix 2 ranks in the ranks of the value of non-zero elements, simply add two nonzero elements if non-zero elements of the matrix a is not equal to the ranks matrix 2 ranks of non-zero elements values were recorded in their location and size.
To Search:
File list (Check if you may need any files):
Matrix addition\矩阵相加-三元组.cpp
...............\矩阵相加-三元组.txt
Matrix addition