I have a 13146 x 13146 matrix in Octave whose unique rows I want to define. unique(M, "rows") fails due to internal and / or Octave constraints.
I looked at other messages about finding unique rows, but none of them addressed this problem with large matrices.
Now my approach would be to โdivide and winโ, for example. to
A(:,:,i)=M(r_i:s_i,:) B(:,:,i)=unique(A(:,:,i), "rows")
with i submatrix index, r_i and s_i starting and ending row numbers of submatrices. To return all data in one large matrix (and again define unique rows):
C(:,:,i)=B(:,:,i)' D=reshape(C,l,n*m) E=D' F=unique(E, "rows")
with n number of submatrices, m initial number of rows in the submatrix, and l number of columns.
Is there a better way to achieve the desired result?
source share