Problem with Matrix and Gauss-Seidel (Maple)
Hello i have problem with my project, please help.
I have to solve a few equation with a Gauss-Seidel way. Unhappy thing is that my Matrix is optimized so I have only three vectors that describe matrix elements(without zero), their location in a row and numbers of elements in every row. I can't rebuild matrix because in these case optimalization doesn't make sense. I have to write code in Maple that can solve equations.
That's my vectors:
Describe matrix elements
Describe place of element in a row
V1 := [11, 2, -1, 1, 18, -3, 21, 2, 15, -1, 18, -2, 26]
Describe number of elements in ewery row(after you make subtraction amount_i=n_(i+1)-n_i)
V2 := [1, 4, 5, 1, 2, 1, 3, 1, 4, 2, 5, 4, 6]
Matrix of b elements
V3 := [1, 4, 6, 8, 10, 12, 14]
If someone know how to do this please help.
b := [1,2,3,4,5,6,7]
I hope it is a good section
Really sorry for my english.