⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mymatrix_com.cpp

📁 该程序是一个matlab与visual c++ 混合编程的例子
💻 CPP
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -