1 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 // Copyright (C) 2019 - Samuel GOUGEON
5 // This file is hereby licensed under the terms of the GNU GPL v2.0,
6 // pursuant to article 5.3.4 of the CeCILL v.2.1.
7 // This file was originally licensed under the terms of the CeCILL v2.1,
8 // and continues to be available under such terms.
9 // For more information, see the COPYING file which you should have received
10 // along with this program.
12 function varargout = %b_gsort(varargin)
13 // Boolean hypermatrices are completely processed in %hm_gsort
15 b = iconvert(varargin(1), 1);
17 b = gsort(b, varargin(2:$))==int8(1);
20 [b, k] = gsort(b, varargin(2:$));
22 varargout = list(b, k);