*/
Got something to write about? Check out our Article Builder.
*/

View \Bgauss02.c

Application of the identity matrix II. v05

Submitted By: xhunga
Rating: starstar (Rate It)


/* gjid03.c                         freeware                   [[Email Removed]]
*/


/* --------------------------------- INCLUDES ------------------------------- */
#include "xa_hfile.h"

/* --------------------------------- MAIN ----------------------------------- */
 main()
{

double pb[4][5*TWOCOL]=
{
 11,114,1, -16,119,111,1,
 12,113,113,111,1, -14,1,
  0,1,   0,117,111,112,1,
 12,118,1,   1,1, -16,114,1,
};
matrix m={4,5*TWOCOL,&pb[0][0]};

double pbT   [4][5*TWOCOL]; matrix mT    ={4,5*TWOCOL,&pbT   [0][0]};
double pbID  [4][4*TWOCOL]; matrix mID   ={4,4*TWOCOL,&pbID  [0][0]};
/*-------------------------------- PROGRAM ---------------------------------- */
 copymF(&m,&mT);

 printf("\n");
 printf(" The matrix  mA \n");
 printmF(&m);
  getchar();

 printf(" Find mID in one step \n");
 idF4(&mID,&m);
 printmF(&mID);
  getchar();

 printf("  mID * mA  \n");
 multmF(&mID,&mT,&m);
 printmF(&m);

 printf("\n Press return to continue");
 getchar();

 return 0;
}

corner
© 1996-2008 CommunityHeaven LLC. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
North American business development: Nicolai Wadstrom. Publisher: Lars Hagelin.