mymatrix_com.cpp
来自「该程序是一个matlab与visual c++ 混合编程的例子」· C++ 代码 · 共 37 行
CPP
37 行
#include "mymatrix_com.hpp"
#include "matlab.hpp"
IMCLEvent* g_pEvent = NULL;
extern _mexcpp_information _lib_info;
static CMCLLibInfoCPP g_LibInfo(&_lib_info);
IMCLLibInfo* g_pLibInfo = &g_LibInfo;
HRESULT __stdcall Cmyfactor::cholesky(/* [in] */ long nargout,
/* [in,out] */ VARIANT* L) {
return( CallComFcn( mlxCholesky, (int) nargout, 1, 0, L ) );
}
HRESULT __stdcall Cmyfactor::ludecomp(/* [in] */ long nargout,
/* [in,out] */ VARIANT* L,
/* [in,out] */ VARIANT* U) {
return( CallComFcn( mlxLudecomp, (int) nargout, 2, 0, L, U ) );
}
HRESULT __stdcall Cmyfactor::qrdecomp(/* [in] */ long nargout,
/* [in,out] */ VARIANT* L,
/* [in,out] */ VARIANT* U) {
return( CallComFcn( mlxQrdecomp, (int) nargout, 2, 0, L, U ) );
}
HRESULT __stdcall Cmyfactor::get_A(/* [out, retval] */ VARIANT* A) {
return( GetProperty( 0, A ) );
}
HRESULT __stdcall Cmyfactor::put_A(/* [in] */ VARIANT A) {
return( PutProperty( 0, &A ) );
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?