Functions | |
if (issparse(m)) if(nargin | |
endif | elseif (nargin==1) i |
elseif (all(c > 0)) i | |
elseif (all(c< 0)) i | |
mode (1:size(m, 2)) | |
if (c(ii)< 0) mode | |
!assert (x,[1, 2;1, 1;2, 7;3, 6]) | |
!assert (idx,[2;1;4;3]) | |
!assert (issparse(sx)) | |
!assert (x, full(sx)) | |
!assert (idx, sidx) | |
Variables | |
function [s, i] | |
other_mode = "descend" | |
else | i = sort_rows_idx_generic (default_mode, other_mode, m, c) |
endif | s = m(i,:) |
else for | ii = 1:length (c) |
endif endfor | indices = other_mode abs(c(:)) |
mode = flipud (mode') | |
endfor endfunction!shared | m |
endfor endfunction!shared | c |
endfor endfunction!shared | x |
endfor endfunction!shared | idx |
endfor endfunction!shared | sx |
endfor endfunction!shared sidx | !m = [1, 1 |
!c = [1, -2] |
!assert | ( | idx | , | |
sidx | ||||
) |
!assert | ( | x | , | |
full(sx) | ||||
) |
!assert | ( | issparse(sx) | ) |
!assert | ( | idx | ) |
!assert | ( | x | ) |
elseif | ( | all(c< 0) | ) |
elseif | ( | all(c > 0) | ) |
if | ( | ) |
if | ( | issparse(m) | ) |
mode | ( | 1: | sizem, 2 | ) |
!c = [1, -2] |
endfor endfunction !shared sidx !m = [1, 1 |
endfor endfunction !shared c |
i = sort_rows_idx_generic (default_mode, other_mode, m, c) |
endfor endfunction !shared idx |
endif indices = other_mode abs(c(:)) |
endfor endfunction !shared m |
mode = flipud (mode') |
other_mode = "descend" |
endif s = m(i,:) |
endfor endfunction !shared sx |
endfor endfunction !shared x |