function mustBeScalarOrEmpty(A)
%MATLAB Code Generation Library Function

%#codegen

%   Copyright 2021 The MathWorks, Inc.

    coder.internal.allowEnumInputs;
    coder.internal.allowHalfInputs;

    coder.internal.assert(isscalar(A) || isempty(A), 'MATLAB:validators:mustBeScalarOrEmpty');

end
