gusucode.com > target工具箱matlab源码程序 > target/extensions/processor/intelhost/tfl/+IntelHostTFL/@VectVectOpEntry/VectVectOpEntry.m

    classdef (ConstructOnLoad) VectVectOpEntry < RTW.TflCOperationEntryML
    %   Copyright 2014 The MathWorks, Inc.
    
    methods
        function obj = VectVectOpEntry(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);
            ent.ConceptualArgs(3) = hCSO.ConceptualArgs(3);
            
            % Implementation is of this type: fcn(inp1, inp2, out, length)
            % length is common to both inputs (inp1, inp2) and output (out)
            
            % Add the length to the implementation
            ent.Implementation.Arguments(4).Value = max(max(hCSO.ConceptualArgs(2).DimRange));
            
        end
        
    end
end