gusucode.com > target工具箱matlab源码程序 > target/extensions/processor/intelhost/tfl/+IntelHostTFL/@MatrOpEntry/MatrOpEntry.m
classdef (ConstructOnLoad) MatrOpEntry < RTW.TflCOperationEntryML % Copyright 2014 The MathWorks, Inc. methods function obj = MatrOpEntry(varargin) mlock; obj@RTW.TflCOperationEntryML(varargin{:}); end function ent = do_match(hThis, ... hCSO, ... %#ok targetBitPerChar, ... %#ok targetBitPerShort, ... %#ok targetBitPerInt, ... %#ok targetBitPerLong ) %#ok % DO_MATCH - Create a custom match function. The base class % checks the types of the arguments prior to calling this % method. This will check additional data and perhaps modify % the implementation function. % ent = RTW.TflCOperationEntry(hThis); %On ent, set the conceptual argument dimensions to be the same as the CSO ent.ConceptualArgs(1) = hCSO.ConceptualArgs(1); ent.ConceptualArgs(2) = hCSO.ConceptualArgs(2); % Implementation is of this type: fcn(inp1, width1, height1, out) %Add the inp1 width to the implementation ent.Implementation.Arguments(2).Value = hCSO.ConceptualArgs(2).DimRange(4); %Add the inp1 height to the implementation ent.Implementation.Arguments(3).Value = hCSO.ConceptualArgs(2).DimRange(2); end end end