%ASXYMEX  Localise extrema and saddle points of a 2D-map
% [XA,YA,FA,DX2FA,DY2FA,DXYFA,XS,YS,FS,DX2FS,DY2FS,DXYFS,STAT] =
% ASXYMEX(F,X,Y,DC,DX,DY,IDX,IDY,L,DIMW) takes a 2D-map F(X,Y) and returns
% the location and value XA,YA,FA and XS,YS,FS of its extrema and saddle
% points, as well as the 2nd derivatives at those points. Extermum/saddle
% pairs whose normalised distance (dx/DX)^2+(dy/DY)^2 < DC are cancelled.
% The non empty boolean matrix L(X,Y) limits the search where
% TRUE. DX=X(2)-X(1),IDX=1/DX,DY=Y(2)-Y(1),IDY=1/DY. The optional
% integer DIMW limits the search to DIMW extrema or saddle
% points. If that number is exceeded, STAT=0 and 1 otherwise.
%
% For details, see: [J-M. Moret et al. Fus.Eng.Des 2015] and [MEQ-redbook] 
%
% [+MEQ MatlabEQuilibrium Toolbox+] Swiss Plasma Center EPFL Lausanne 2022. All rights reserved.

function varargout = asxymex(varargin) %#ok<STOUT>
 error('MEQ:MEX "%s" not compiled or not in the Matlab path',mfilename)
end
