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

📄 13.htm

📁 VC与Matlab混合编程文章.
💻 HTM
📖 第 1 页 / 共 2 页
字号:
<SCRIPT LANGUAGE="JavaScript" SRC="/-fs0/sys/pop-up.js"></SCRIPT><html><head><title>Matlab与C++接口与混合编程讨论小结(十三) </title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head><body bgcolor="#FFFFFF" text="#000000"><table width="101%" border="0">  <tr>    <td width="7%">&nbsp;</td>    <td width="84%">      <div align="center"><b><font size="4">Matlab与C++接口与混合编程讨论小结(十三) </font></b></div>    </td>    <td width="9%">&nbsp;</td>  </tr>  <tr>    <td height="6359" width="7%">&nbsp;</td>    <td height="6359" width="84%"> <br>      <br>      <br>      附录:Matcom C数学库函数列表(部分) <br>      这是一个丰富的数学库,约600个函数,包括sim()函数 <br>      --------------------------------------------------------------------------       <br>      矩阵基础类 <br>      系统常数 <br>      特殊函数 <br>      异常处理函数 <br>      矩阵生成函数 <br>      操作系统资源函数 <br>      数值计算函数 <br>      数学函数 <br>      矩阵操作函数 <br>      矩阵属性函数 <br>      图形函数 <br>      颜色函数 <br>      用户介面函数 <br>      is*函数族 <br>      mex函数 <br>      字符串函数 <br>      字符串函数 <br>      类型转换函数 <br>      **************************************************************************       <br>      &gt;&gt;&gt; 矩阵基础类 <br>      **************************************************************************       <br>      class Mm <br>      { <br>      DLLI Mm(); <br>      DLLI Mm(int isc, int iss, int nonzeros, int nrows, int ncols, mt_matrix_ty       <br>      <br>      pes new_type=mt_double_matrix); <br>      DLLI Mm(int isc, int iss, int nonzeros, int new_ndims, const int new_dims[       <br>      <br>      max_ndims], mt_matrix_types new_type=mt_double_matrix); <br>      DLLI Mm(i_o_t, const char* mname, int isglobal); <br>      DLLI Mm(const char* mname, int m, int n); <br>      DLLI Mm(int aisc, cMm x, cMm y, cMm dim1, op_t op, int do_dim, Mm&amp; minmax_       <br>      b] <br>      <br>      idx); <br>      DLLI Mm(m_type src); <br>      DLLI Mm(cMm src); <br>      DLLI Mm(cMm src, const char* mname); <br>      DLLI Mm(const Mc&amp; src); <br>      DLLI Mm(cMr src, int err=1); <br>      DLLI ~Mm(); <br>      Mm RDLLI operator =(cMm src); <br>      void DLLI deepcopy(cMm src, mt_matrix_types new_type=mt_uninit_matrix);       <br>      void DLLI deepcopy(int isc, cMm src, mt_matrix_types new_type=mt_uninit_ma       <br>      <br>      trix); <br>      void DLLI deepcopy(int isc, int iss, cMm src, mt_matrix_types new_type=mt_       <br>      <br>      uninit_matrix); <br>      int DLLI getreal(int force=0) const; <br>      int DLLI getcomplex(); <br>      void DLLI collapse(); <br>      inline int DLLI rows() const { return dims[0]; } <br>      inline int DLLI cols() const { return dims[1]; } <br>      int DLLI size() const; <br>      int DLLI size() const;x, cMm y, cMm dim1, op_t op, int do_dim, Mm&amp; minmax_ab]       <br>      int DLLI size(int dim) const; <br>      int DLLI nsingleton() const; <br>      int DLLI vectordim() const; <br>      int DLLI length() const; <br>      const char PDLLI getname() const { return self_name; } <br>      void DLLI setname(const char* new_name); <br>      int DLLI isstr() const { return (flags.str!=0); } <br>      void DLLI setstr(int newd); <br>      inline int DLLI issparse() const { return (flags.sparse!=0); } <br>      void DLLI setsparse(int sp); <br>      inline int DLLI islogical() const { return (flags.logical!=0); } <br>      { return (flags.logical!=0); } <br>      void DLLI setlogical(int newd); <br>      inline int DLLI isglobal() const { return (flags.global!=0); } <br>      inline int DLLI isstruct() const { return (fields!=NULL); } <br>      inline int RDLLI getndims() const { return (int&amp;)ndims; } <br>      inline int PDLLI getdims() const { return (int*)dims; } <br>      inline M_types RDLLI getflags() { return flags; } <br>      inline mt_matrix_types DLLI gettype() const { return flags.type; } <br>      inline int DLLI getnfields() const { return nfields; } <br>      inline const char PPDLLI getfields() const { return fields; } <br>      inline int DLLI isc() const { return (pi!=NULL); } <br>      int do_dim, Mm&amp; minmax_ab] <br>      int DLLI issamename(const char *s) const { return s==self_name; } <br>      int DLLI dirty() const; <br>      int DLLI getp() const { return p; } <br>      Mm DLLI safebr(int i0) const; <br>      inline m_type PDLLI getpr(m_type*) const { return (m_type*)pr; } <br>      inline m_type PDLLI getpi(m_type*) const { return (m_type*)pi; } <br>      inline uint8 PDLLI getpr(uint8*) const { return (uint8*)pr; } <br>      inline uint8 PDLLI getpi(uint8*) const { return (uint8*)pi; } <br>      inline Mm PDLLI getpr(Mm*) const { return (Mm*)pr; } <br>      inline Mm PDLLI getpi(Mm*) const { return (Mm*)pi; } <br>      inline m_type PDLLI getpr(m_type*,int i0) const { return i0-1+(m_type*)pr;       <br>      <br>      } <br>      } <br>      inline m_type PDLLI getpi(m_type*,int i0) const { return i0-1+(m_type*)pi;       <br>      <br>      } <br>      inline uint8 PDLLI getpr(uint8*,int i0) const { return i0-1+(uint8*)pr;       <br>      } <br>      inline uint8 PDLLI getpi(uint8*,int i0) const { return i0-1+(uint8*)pi;       <br>      } <br>      inline Mm PDLLI getpr(Mm*,int i0) const { return i0-1+(Mm*)pr; } <br>      getpr(Mm*,int i0) const { return i0-1+(Mm*)pr; }x_ab] <br>      inline Mm PDLLI getpi(Mm*,int i0) const { return i0-1+(Mm*)pi; } <br>      inline m_type PDLLI getpr(m_type*,int i0,int i1) const { return i0-1+(i1-1       <br>      <br>      )*dims[0]+(m_type*)pr; } <br>      inline m_type PDLLI getpi(m_type*,int i0,int i1) const { return i0-1+(i1-1       <br>      <br>      )*dims[0]+(m_type*)pi; } <br>      inline uint8 PDLLI getpr(uint8*,int i0,int i1) const { return i0-1+(i1-1       <br>      <br>      )*dims[0]+(uint8*)pr; } <br>      inline uint8 PDLLI getpi(uint8*,int i0,int i1) const { return i0-1+(i1-1       <br>      <br>      )*dims[0]+(uint8*)pi; } <br>      inline Mm PDLLI getpr(Mm*,int i0,int i1) const { return i0-1+(i1-1 <br>      <br>      )*dims[0]+(Mm*)pr; } <br>      inline Mm PDLLI getpi(Mm*,int i0,int i1) const { return i0-1+(i1-1 <br>      <br>      )*dims[0]+(Mm*)pi; } <br>      m_type PDLLI addr() const; <br>      m_type PDLLI addr(int i0) const; <br>      <br>      inline Mm PDLLI getpr(Mm*,int i0) const { return i0-1+(Mm*)pr; }x_ab] <br>      m_type PDLLI addr(int i0,int i1) const; <br>      m_type PDLLI addi() const; <br>      m_type PDLLI addi(int i0) const; <br>      m_type PDLLI addi(int i0,int i1) const; <br>      inline int PDLLI getindex() const { return index; } <br>      inline int RDLLI getnnz() const { return (int&amp;)nnz; } <br>      m_type RDLLI r() const; <br>      m_type RDLLI r(double i0) const; <br>      m_type RDLLI r(double i0, double i1) const; <br>      m_type RDLLI r(double i0, double i1, double i2) const; <br>      m_type RDLLI i() const; <br>      m_type RDLLI i(double i0) const; <br>      m_type RDLLI i(double i0, double i1) const; <br>      m_type RDLLI i(double i0, double i1, double i2) const; <br>      uint8 RDLLI ur(int i0) const; <br>      uint8 RDLLI ur(int i0, int i1) const; <br>      Mm RDLLI mr(int i0) const; <br>      Mm RDLLI mr(int i0, int i1) const; <br>      Mr DLLI member(const char* field) const { return Mr(*this, field); } <br>      Mr DLLI operator ()(cMm i0) const { return Mr(Mr_idx_paren, *this, i0);       } <br>      Mr DLLI operator ()(cMm i0, cMm i1) const { return Mr(Mr_idx_paren, *this,       <br>      <br>      inline Mm PDLLI getpr(Mm*,int i0) const { return i0-1+(Mm*)pr; }x_ab] <br>      i0, i1); } <br>      i0, i1); } <br>      Mr DLLI operator ()(cMm i0, cMm i1, cMm i2) const { return Mr(Mr_idx_paren       <br>      <br>      , *this, i0, i1, i2); } <br>      Mr DLLI operator ()(cMm i0, cMm i1, cMm i2, cMm i3) const { return Mr(Mr_i       <br>      <br>      dx_paren, *this, i0, i1, i2, i3); } <br>      Mr DLLI br(cMm i0) const { return Mr(Mr_idx_br,*this, i0); } <br>      Mr DLLI br(cMm i0, cMm i1) const { return Mr(Mr_idx_br,*this, i0, i1); }       <br>      Mr DLLI br(cMm i0, cMm i1, cMm i2) const { return Mr(Mr_idx_br,*this, i0,       <br>      i1, i2); } <br>      Mr DLLI br(cMm i0, cMm i1, cMm i2, cMm i3) const { return Mr(Mr_idx_br,*th       <br>      <br>      is, i0, i1, i2, i3); } <br>      m_type&amp; fastindex(double i0) const { return pr[int(i0)-1]; } <br>      m_type&amp; fastindex(double i0, double i1) const { return pr[int(i0)-1+(int(i       <br>      <br>      1)-1)*dims[0]]; } <br>      void DLLI vwcopy1(cMm src, cMm v); <br>      void DLLI vwcopy2(cMm src, cMm v, cMm w); <br>      void DLLI vwcopyn(cMr src, cMm rhs); <br>      const { return i0-1+(Mm*)pr; }x_ab] <br>      void DLLI vwcopy0(cMr src); <br>      int DLLI findfield(const char* field, int err) const; <br>      const char PDLLI getfield(int i) const; <br>      int DLLI addfield(const char* field,int quick); <br>      int DLLI rmfield(const char* field); <br>      void DLLI extend_nfields(int new_nfields); <br>      <br>      int DLLI getclassid() const { return classid; } <br>      void DLLI setclassid(int new_classid) { classid=new_classid; } <br>      void DLLI reshape(const int m, const int n); <br>      void DLLI reshape(const int new_ndims, const int new_dims[max_ndims]); <br>      void DLLI print(int full) const; <br>      void DLLI warn_uninit() const; <br>      void DLLI resparse(); <br>      int DLLI search(int idx) const; <br>      void DLLI sort(); <br>      void DLLI extend_nnz(int new_nnz); <br>      }; // M <br>      Mc DLLI BR(cMm src); <br>      Mc DLLI CL(cMm src); <br>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -