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/a01d

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 : vel_rop.h */ /* ------------------------------------ */ double **swapR_mR( double **A, int r1, int r2) { double T; int c; for ( c=C1; c<A[C_SIZE][C0]; c++) { T = A[r1][c]; A[r1][c] = A[r2][c]; A[r2][c] = T; } return(A); } /* ------------------------------------ */ double **mulR_mR( double **A, double s, int r ) { int c; for ( c=C1; c<A[C_SIZE][C0]; c++) A[r][c] *= s; return(A); } /* ------------------------------------ */ double **addR_mR( double **A, double s, int r1, int r2 ) { int c; for ( c=C1; c<A[C_SIZE][C0]; c++) A[r2][c] += s*A[r1][c]; return(A); } /* ------------------------------------ */ /* ------------------------------------ */