Jump to content

Talk:Tridiagonal matrix algorithm

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 206.162.205.234 (talk) at 09:42, 29 November 2008. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Tridiagonal matrix algorithm l'exemple de trensport de la chaleure dans un bare

Edited the C example to clarify parts of the algorithm. Specifically, the C algorithm computed 1/m and then multiplied, instead of just dividing by m. This is dangerous in floating point arithmetic, and should be avoided. The code also more closely matches the algorithm in the example above. David Souther (talk) 16:17, 30 October 2008 (UTC)[reply]

Also, in the C# code, the variable 'f' is not declared anywhere so this code will not compile. I believe that the 'x' array is suppose to have the same length as 'd' (or 'b' for that matter). And seeing how 'N' is being used to determine it's limit within the program, changing f.Length to d.Length makes sense. 206.162.205.234 (talk) 09:42, 29 November 2008 (UTC)[reply]