function [b,i] = mink(a,k,varargin)
%MATLAB Code Generation Library Function

%   Copyright 2017 The MathWorks, Inc.
%#codegen

if nargout == 2
    coder.inline('always');
    [b,ii] = extremeKElements('mink',a,k,varargin{:});
    i = double(ii);
else
    b = extremeKElements('mink',a,k,varargin{:});
end
