主要内容

RTW.TflBlasEntryGenerator

为 BLAS 运算创建代码替换表条目

说明

obj = RTW.TflBlasEntryGenerator 创建 BLAS 运算符的代码替换表条目的句柄 obj。该条目将运算符的概念表示映射到实现(替换)表示。

示例

示例

全部折叠

此示例说明如何创建 BLAS 运算符的代码替换表条目 op_entry

hTable = RTW.TflTable;

arch = computer('arch');
compilerName = 'microsoft';
LibPath = fullfile('$(MATLAB_ROOT)', 'extern', ...
    'lib', arch, compilerName);

op_entry = RTW.TflBlasEntryGenerator;

libExt = 'lib';

setTflCOperationEntryParameters(op_entry, ...
    'Key',                      'RTW_OP_MUL', ...
    'Priority',                 100, ...
    'ImplementationName',       'dgemm32', ...
    'ImplementationHeaderFile', 'blascompat32_crl.h', ...
    'ImplementationHeaderPath', fullfile('$(MATLAB_ROOT)','extern','include'), ...
    'AdditionalLinkObjs',       {['libmwblascompat32.' libExt]}, ...
    'AdditionalLinkObjsPaths',  {LibPath}, ...
    'SideEffects',              true);

输出参量

全部折叠

obj 是为 BLAS 运算符创建的代码替换表条目的句柄。

版本历史记录

在 R2010a 中推出