?? my_det.cpp
字號:
//
// MATLAB Compiler: 2.2
// Date: Tue Jun 25 12:44:31 2002
// Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on"
// "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O"
// "array_indexing:on" "-O" "optimize_conditionals:on" "-p" "-W" "main" "-L"
// "Cpp" "-t" "-T" "link:exe" "-h" "libmmfile.mlib" "maindet" "mat_feat"
// "my_det"
//
#include "my_det.hpp"
#include "libmatlbm.hpp"
static mxChar _array1_[130] = { 'R', 'u', 'n', '-', 't', 'i', 'm', 'e', ' ',
'E', 'r', 'r', 'o', 'r', ':', ' ', 'F', 'i',
'l', 'e', ':', ' ', 'm', 'y', '_', 'd', 'e',
't', ' ', 'L', 'i', 'n', 'e', ':', ' ', '1',
' ', 'C', 'o', 'l', 'u', 'm', 'n', ':', ' ',
'1', ' ', 'T', 'h', 'e', ' ', 'f', 'u', 'n',
'c', 't', 'i', 'o', 'n', ' ', '"', 'm', 'y',
'_', 'd', 'e', 't', '"', ' ', 'w', 'a', 's',
' ', 'c', 'a', 'l', 'l', 'e', 'd', ' ', 'w',
'i', 't', 'h', ' ', 'm', 'o', 'r', 'e', ' ',
't', 'h', 'a', 'n', ' ', 't', 'h', 'e', ' ',
'd', 'e', 'c', 'l', 'a', 'r', 'e', 'd', ' ',
'n', 'u', 'm', 'b', 'e', 'r', ' ', 'o', 'f',
' ', 'o', 'u', 't', 'p', 'u', 't', 's', ' ',
'(', '1', ')', '.' };
static mwArray _mxarray0_ = mclInitializeString(130, _array1_);
static mxChar _array3_[129] = { 'R', 'u', 'n', '-', 't', 'i', 'm', 'e', ' ',
'E', 'r', 'r', 'o', 'r', ':', ' ', 'F', 'i',
'l', 'e', ':', ' ', 'm', 'y', '_', 'd', 'e',
't', ' ', 'L', 'i', 'n', 'e', ':', ' ', '1',
' ', 'C', 'o', 'l', 'u', 'm', 'n', ':', ' ',
'1', ' ', 'T', 'h', 'e', ' ', 'f', 'u', 'n',
'c', 't', 'i', 'o', 'n', ' ', '"', 'm', 'y',
'_', 'd', 'e', 't', '"', ' ', 'w', 'a', 's',
' ', 'c', 'a', 'l', 'l', 'e', 'd', ' ', 'w',
'i', 't', 'h', ' ', 'm', 'o', 'r', 'e', ' ',
't', 'h', 'a', 'n', ' ', 't', 'h', 'e', ' ',
'd', 'e', 'c', 'l', 'a', 'r', 'e', 'd', ' ',
'n', 'u', 'm', 'b', 'e', 'r', ' ', 'o', 'f',
' ', 'i', 'n', 'p', 'u', 't', 's', ' ', '(',
'1', ')', '.' };
static mwArray _mxarray2_ = mclInitializeString(129, _array3_);
void InitializeModule_my_det() {
}
void TerminateModule_my_det() {
}
static mwArray Mmy_det(int nargout_, mwArray A);
_mexLocalFunctionTable _local_function_table_my_det
= { 0, (mexFunctionTableEntry *)NULL };
//
// The function "my_det" contains the normal interface for the "my_det"
// M-function from file "D:\mywork\my_det.m" (lines 1-3). This function
// processes any input arguments and passes them to the implementation version
// of the function, appearing above.
//
mwArray my_det(mwArray A) {
int nargout(1);
mwArray d(mclGetUninitializedArray());
d = Mmy_det(nargout, A);
return d;
}
//
// The function "mlxMy_det" contains the feval interface for the "my_det"
// M-function from file "D:\mywork\my_det.m" (lines 1-3). The feval function
// calls the implementation version of my_det through this function. This
// function processes any input arguments and passes them to the implementation
// version of the function, appearing above.
//
void mlxMy_det(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]) {
MW_BEGIN_MLX();
{
mwArray mprhs[1];
mwArray mplhs[1];
int i;
mclCppUninitializeArrays(1, mplhs);
if (nlhs > 1) {
error(_mxarray0_);
}
if (nrhs > 1) {
error(_mxarray2_);
}
for (i = 0; i < 1 && i < nrhs; ++i) {
mprhs[i] = mwArray(prhs[i], 0);
}
for (; i < 1; ++i) {
mprhs[i].MakeDIN();
}
mplhs[0] = Mmy_det(nlhs, mprhs[0]);
plhs[0] = mplhs[0].FreezeData();
}
MW_END_MLX();
}
//
// The function "Mmy_det" is the implementation version of the "my_det"
// M-function from file "D:\mywork\my_det.m" (lines 1-3). It contains the
// actual compiled code for that M-function. It is a static function and must
// only be called from one of the interface functions, appearing below.
//
//
// function d=my_det(A)
//
static mwArray Mmy_det(int nargout_, mwArray A) {
mwLocalFunctionTable save_local_function_table_
(&_local_function_table_my_det);
mwArray d(mclGetUninitializedArray());
//
// d=det(A);
//
d = det(mwVa(A, "A"));
mwValidateOutput(d, 1, nargout_, "d", "my_det");
return d;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -