Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Linear Algebra and the C Language/a017

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

__NOTOC__ Install this file in your working directory. /* ------------------------------------ */ /* Save as : vbtm.h */ /* ------------------------------------ */ double **transpose_mR( double **A, double **A_t ) { int r; int c; canItranspose_mR(A,A_t,"transpose_mR();","(A or A_t)"); for ( r=R1; r<A[R_SIZE][C0]; r++) for ( c=C1; c<A[C_SIZE][C0]; c++) A_t[c][r] = A[r][c]; return(A_t); } /* ------------------------------------ */ /* ------------------------------------ */ double trace_R( double **A ) { int r; double trace = 0.0; isquare_mR(A,"trace_mR();","(A)"); for( r=R1; r<A[R_SIZE][C0]; r++) trace += A[r][r]; return(trace); } /* ------------------------------------ */ /* ------------------------------------ */