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

📄 xvcopym.h

📁 基本矩阵运算 : + - *, power, transpose, trace, determinant, minor, matrix of minor, cofactor, matrix of co
💻 H
字号:
/* xcopym.h                     freeware                   xhunga@tiscali.fr  */

/* ------------------------------------- FUNCTION --------------------------  */
/* Do    :                                                                    */
/*                                                                            */
/* -------------------------------------------------------------------------- */
void copy_mF(
PmF mA,
PmF mB)
{
  int i,j;

  for (i = 0 ; i < mA->rows ; i++)
    for ( j = 0; j < mA->cols ; j++)
      *(mB->pb+i *mB->cols+j) = *(mA->pb+i *mA->cols+j);
}

/* ------------------------------------- FUNCTION --------------------------  */
/* Do    :                                                                    */
/*                                                                            */
/* -------------------------------------------------------------------------- */
void copydiag_mF(
PmF mA,
PmF mB)
{
  int i,j;
  if (mA->rows != mB->rows)
    {
     printf("\n copym() error - matrices different sizes");
     printf("\n Press return to continue");
     getchar();
     exit(1);
    }

id_mF(mB);

for (i = 0 ; i < mA->rows ; i++)
  for ( j = 0; j < mA->cols ; j++)
     {
      if(i*C2==j)
         {
          *(mB->pb+i *mB->cols+j  ) = *(mA->pb+i *mA->cols+j);
          *(mB->pb+i *mB->cols+j+1) = *(mA->pb+i *mA->cols+j+1);
         }
     }
}


⌨️ 快捷键说明

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