%#codegen
% Float2Fixed wrapper for function 'sub2ind'
function [IND, varargout] = sub2indx(SIZ, varargin)
    coder.inline('always');
    nargoutchk(1, 1);
    for ii=coder.unroll(1:numel(varargin))
        varargout{ii} = fi_toint(varargin{ii});
    end
    IND = sub2ind(fi_toint(SIZ), varargout{:});
end

