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

📄 xpmbi.h

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


/* --------------------------------- FUNCTION ------------------------------  */
/* Do    :                                                                    */
/*                                                                            */


/* -------------------------------------------------------------------------- */
void p_mA_IDbI(
PmF mA)
{
 int i;
 int j;
 int n;

 for (i = 0 ; i < mA->rows ; i++)
  {
   printf("\n");
   n=0;
   for ( j = 0 ; j < mA->rows * C2; j++,j++)
    {
     printf(" %2.0f",*(mA->pb+i *mA->cols+j  ));
    }

   printf(" [");
   for ( j = mA->rows * C2 ; j < mA->cols; j++,j++)
    {
     n++;
     if(*(mA->pb+i *mA->cols+j))
     {
      if(*(mA->pb+i *mA->cols+j  )==1 &&
         *(mA->pb+i *mA->cols+j+1)==1)
        {
         printf("+b%d",n);
        }
      else if(*(mA->pb+i *mA->cols+j  )==-1 &&
              *(mA->pb+i *mA->cols+j+1)==1)
        {
         printf(" - b%d",n);
        }
      else if(*(mA->pb+i *mA->cols+j+1)==1)
        {
         printf("%+.0f b%d",*(mA->pb+i *mA->cols+j),n);
        }
      else
        {
         printf("%+.0f/%-.0f b%d",*(mA->pb+i *mA->cols+j  ),
                                    *(mA->pb+i *mA->cols+j+1),n);
        }
     }
    }
    printf("]");

  }

  printf("\n");
}

⌨️ 快捷键说明

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