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

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_cop.h */ /* ------------------------------------ */ double **swapC_mR( double **A, int c1, int c2) { double T; int r; for ( r=R1; r<A[R_SIZE][C0]; r++) { T = A[r][c1]; A[r][c1] = A[r][c2]; A[r][c2] = T; } return(A); } /* ------------------------------------ */ double **mulC_mR( double **A, double s, int c ) { int r; for ( r=R1; r<A[R_SIZE][C0]; r++) A[r][c] *= s; return(A); } /* ------------------------------------ */ double **addC_mR( double **A, double s, int c1, int c2 ) { int r; for ( r=R1; r<A[R_SIZE][C0]; r++) A[r][c2] += s*A[r][c1]; return(A); } /* ------------------------------------ */ /* ------------------------------------ */