function r = hypot(x,y)
%MATLAB Code Generation Library Function

%   Copyright 2003-2019 The MathWorks, Inc.
%#codegen

coder.replace;
coder.internal.allowHalfInputs;
eml_invariant(nargin == 2,'MATLAB:minrhs');
eml_invariant(isfloat(x),'Coder:toolbox:unsupportedClass',mfilename,class(x));
eml_invariant(isfloat(y),'Coder:toolbox:unsupportedClass',mfilename,class(y));
zero = coder.internal.scalarEg(real(x),real(y));
r = coder.internal.applyBinaryScalarFunction(mfilename,zero, ...
    @coder.internal.scalar.hypot,x,y);