Application of the identity matrix II. v05
Submitted By:
xhunga
Rating:





(
Rate It)
/* xpm.h freeware [[Email Removed]] */
/* --------------------------------- FUNCTION ------------------------------ */
/* Do : */
/* */
/* Call : */
/* Debug : */
/* -------------------------------------------------------------------------- */
void printmF(
pmatrix mA)
{
int i;
int j;
for (i = 0 ; i < mA->rows ; i++)
{
printf("\n");
for ( j = 0 ; j < mA->cols ; j++,j++)
{
printf(" %6.0f/%-6.0f",*(mA->pblock+i *mA->cols+j ),
*(mA->pblock+i *mA->cols+j+1));
}
}
printf("\n");
}
/* --------------------------------- FUNCTION ------------------------------ */
/* Do : */
/* */
/* Call : */
/* Debug : */
/* -------------------------------------------------------------------------- */
void printmF0(
pmatrix mA)
{
int i;
int j;
for (i = 0 ; i < mA->rows ; i++)
{
printf("\n");
for ( j = 0 ; j < mA->cols ; j++,j++)
{
printf(" %.0f/%-.0f ",*(mA->pblock+i *mA->cols+j ),
*(mA->pblock+i *mA->cols+j+1));
}
}
printf("\n");
}
/* --------------------------------- FUNCTION ------------------------------ */
/* Do : */
/* */
/* Call : */
/* Debug : */
/* -------------------------------------------------------------------------- */
void printmF2(
pmatrix mA)
{
int i;
int j;
for (i = 0 ; i < mA->rows ; i++)
{
printf("\n");
for ( j = 0 ; j < mA->cols ; j++,j++)
{
printf(" %2.0f/%-2.0f",*(mA->pblock+i *mA->cols+j ),
*(mA->pblock+i *mA->cols+j+1));
}
}
printf("\n");
}
/* --------------------------------- FUNCTION ------------------------------ */
/* Do : */
/* */
/* Call : */
/* Debug : */
/* -------------------------------------------------------------------------- */
void printmF3(
pmatrix mA)
{
int i;
int j;
for (i = 0 ; i < mA->rows ; i++)
{
printf("\n");
for ( j = 0 ; j < mA->cols ; j++,j++)
{
printf(" %3.0f/%-3.0f",*(mA->pblock+i *mA->cols+j ),
*(mA->pblock+i *mA->cols+j+1));
}
}
printf("\n");
}
/* --------------------------------- FUNCTION ------------------------------ */
/* Do : */
/* */
/* Call : */
/* Debug : */
/* -------------------------------------------------------------------------- */
void printmF4(
pmatrix mA)
{
int i;
int j;
for (i = 0 ; i < mA->rows ; i++)
{
printf("\n");
for ( j = 0 ; j < mA->cols ; j++,j++)
{
printf(" %4.0f/%-4.0f",*(mA->pblock+i *mA->cols+j ),
*(mA->pblock+i *mA->cols+j+1));
}
}
printf("\n");
}
/* --------------------------------- FUNCTION ------------------------------ */
/* Do : */
/* */
/* Call : */
/* Debug : */
/* -------------------------------------------------------------------------- */
void printmF5(
pmatrix mA)
{
int i;
int j;
for (i = 0 ; i < mA->rows ; i++)
{
printf("\n");
for ( j = 0 ; j < mA->cols ; j++,j++)
{
printf(" %5.0f/%-5.0f",*(mA->pblock+i *mA->cols+j ),
*(mA->pblock+i *mA->cols+j+1));
}
}
printf("\n");
}
/* --------------------------------- FUNCTION ------------------------------ */
/* Do : */
/* */
/* Call : */
/* Debug : */
/* -------------------------------------------------------------------------- */
void printmF8(
pmatrix mA)
{
int i;
int j;
for (i = 0 ; i < mA->rows ; i++)
{
printf("\n");
for ( j = 0 ; j < mA->cols ; j++,j++)
{
printf(" %8.0f/%-8.0f",*(mA->pblock+i *mA->cols+j ),
*(mA->pblock+i *mA->cols+j+1));
}
}
printf("\n");
}
/* --------------------------------- FUNCTION ------------------------------ */
/* Do : */
/* */
/* Call : */
/* Debug : */
/* -------------------------------------------------------------------------- */
void printmF10(
pmatrix mA)
{
int i;
int j;
for (i = 0 ; i < mA->rows ; i++)
{
printf("\n");
for ( j = 0 ; j < mA->cols ; j++,j++)
{
printf(" %10.0f/%-10.0f",*(mA->pblock+i *mA->cols+j ),
*(mA->pblock+i *mA->cols+j+1));
}
}
printf("\n");
}