主要内容

本页采用了机器翻译。点击此处可查看最新英文版本。

RTW.TflCBlasEntryGenerator

为 CBLAS 操作创建代码替换表条目

说明

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

示例

示例

全部折叠

此示例显示如何为 CBLAS 运算符 hEnt 创建代码替换表条目。

hTable = RTW.TflTable;

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

op_entry = RTW.TflCBlasEntryGenerator;

libExt = 'lib';

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

输出参量

全部折叠

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

版本历史记录

在 R2010a 中推出