mexSparseLogical0Diag
代码说明:
Because of memory constraints, it is often impossible to change by subscript all the elements of a large sparse matrix to zero. This leads to changing the elements in a loop, which is horrendously slow. This mex solves that problem. Usage: B = mexSparseLogical0Diag(A). This problem is very common when dealing with adjacency matrices used in clustering - an adjacency matrix is a logical matrix, where the main diagonal is all zeros (no element is a neighbour of itself).(Because of memory constraints, it is often impossible to change by subscript all the elements of a large sparse matrix to zero. This leads to changing the elements in a loop, which is horrendously slow. This mex solves that problem. Usage: B = mexSparseLogical0Diag(A). This problem is very common when dealing with adjacency matrices used in clustering- an adjacency matrix is a logical matrix, where the main diagonal is all zeros (no element is a neighbour of itself).)
下载说明:请别用迅雷下载,失败请重下,重下不扣分!