function [tf, P] = islocalmax(A, varargin)
%MATLAB Code Generation Library Function

%   Limitations:
%   Requires variable-sizing
%   'ProminenceWindow' is not supported
%   Sparse inputs are not supported

%   Copyright 2019 The MathWorks,Inc.
%#codegen

narginchk(1,inf);
coder.internal.prefer_const(varargin);

if nargout > 1
    [tf, P] = isLocalExtrema(A, true, varargin{:});
else
    tf = isLocalExtrema(A, true, varargin{:});
end