Fortran TDMA algorithm on wiki -


i visited wiki site:

https://en.wikibooks.org/wiki/algorithm_implementation/linear_algebra/tridiagonal_matrix_algorithm#fortran_90

it says a,b,c sub-diagonal, diagonal, , super-diagonal. if 'n' size of b, aren't sizes of 'a' , 'c' n-1? clear inspection both c(1) , c(n) accessed, contradicts sizes i've described.

what's going on here? algorithm wrong? matrix sizes i've assumed wrong? input matrix algorithm?

any appreciated!

cp(n) calculated avoid awkward if statement - never used in determining x. c(n) not used.

a(1) unused, expected.


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -