selif: remove unused function

silicon
Sébastien Villemot 2023-03-01 16:44:05 +01:00
parent c51223466c
commit a2591c474e
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 0 additions and 26 deletions

View File

@ -1,26 +0,0 @@
function x = selif(a,b)
% Copyright © 2001-2017 Dynare Team
%
% This file is part of Dynare.
%
% Dynare is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% Dynare is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
if size(b,2) ~= 1
error ('The second argument in SELIF must be à column vector') ;
end
x = a(find(b == 1),:) ;
return ;