function x = log10(x)
%MATLAB Code Generation Library Function

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

coder.replace;
coder.internal.allowHalfInputs;
eml_invariant(nargin > 0,'MATLAB:minrhs');
eml_invariant(isfloat(x),'Coder:toolbox:unsupportedClass',mfilename,class(x));
if isreal(x)
    % Error if any x(k) < 0
    if coder.internal.isDomainError(x,@lt,zeros('like',x))
        coder.internal.error('Coder:toolbox:ElFunDomainError',mfilename);
    end
end
x = coder.internal.applyScalarFunctionInPlace(mfilename,@coder.internal.scalar.log10,x);