function mustBePositive(A)
%MATLAB Code Generation Library Function
%
%#codegen

%   Copyright 2016-2022 The MathWorks, Inc.

coder.internal.allowHalfInputs;
coder.internal.allowEnumInputs;
mustBeNumericOrLogical(A);
mustBeReal(A);
coder.internal.assert(coder.internal.checkAll(@checkPositive,A), ...
    'MATLAB:validators:mustBePositive');

%--------------------------------------------------------------------------

function out = checkPositive(a)
out = (a > cast(0,'like',a));

%--------------------------------------------------------------------------
