# e0_elim - /* ** e0_elim.ox ** ** Purpose: ** ??? ** **...

This preview shows pages 1–2. Sign up to view the full content.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: /* ** e0_elim.ox ** ** Purpose: ** ??? ** ** Date: ** 23/7/09 ** ** Author: ** Charles Bos */ #include <oxstd.h> # /* ** TransRow(const amC, const i, const j) ** ** Purpose: ** Clean row j of element in column i ** ** Inputs: ** amC address of existing iK x iM matrix ** i integer, number of pivot element ** j integer, number of row to sweep ** ** Output: ** amC address of iK x iM matrix, with a zero at location j,i ** as a result of the sweeping ** ** Return value: ** ir TRUE if all well */ TransRow(const amC, const i, const j) { decl dF; if (amC[0][i][i] == 0) return FALSE; // Find factor multiplying row i dF= amC[0][j][i] / amC[0][i][i]; // Subtract dF times row i from row j amC[0][j][i:]-= dF * amC[0][i][i:]; return TRUE; } /* ** ElimColumn(const amC, const i) ** ** Purpose: ** Eliminate the elements of column i, below the pivot ** ** Inputs: ** amC address of existing iK x iM matrix ** i integer, number of pivot element ** ** Output: ** amC address of iK x iM matrix, with zeros below location i,i **...
View Full Document

## This note was uploaded on 05/28/2010 for the course ECONOMIC FM407 taught by Professor Kimcj during the Spring '04 term at 카이스트, 한국과학기술원.

### Page1 / 4

e0_elim - /* ** e0_elim.ox ** ** Purpose: ** ??? ** **...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online