function [z,hasTRMethod] = evaluateCustomTRMethod(trMethod,x,umf,lmf,varargin) %#codegen
%% EVALUATECUSTOMTRMETHOD Evaluates custom type reduction method.
%
%   [Z,HASTRMETHOD] = EVALUATECUSTOMTRMETHOD(TRMETHOD,X,UMF,LMF)
%   Evaluates X, UMF, and LMF with TRMETHOD. HASTRMETHOD is true if
%   TRMETHOD exists.
%
%   Overload this function in a code generation directory for evaluating a
%   custom type reduction method. 
%
%   Examples
%     function [z,hasTRMethod] = evaluateCustomTRMethod(trMethod,x,umf,lmf,varargin) %#codegen
%         z = zeros(1,2,'like',x);
%         hasTRMethod = false;
%         if isequal(trMethod,uint8('customTRMethod'))
%             z(:) = customTRMethod(x,umf,lmf,varargin{:});
%             hasTRMethod(1) = true;
%         end
%     end

%   Copyright 2019 The MathWorks, Inc. 

z = zeros(1,2,'like',x);
hasTRMethod = false;
end