The reduction from tridiagonal into semiseparable form will be performed by the following algorithm:
for j=n:-1:2
for i=j:1:n
A=SymGiv(A,i-1,i,i);
end
end
It is very clear that the first innerloop as in Algorithm 1 is not needed anymore, because we already have all the zeros. We will now calculate the extra cost needed to transform this tridiagonal to semiseparable form. The calculations we make are optimized in all possible ways, exploiting everything we now about the matrix, which means, that multiplications and summations with zeros are not counted. Also operations on semiseparable parts are not treated as full matrices but as products of vectors. The calculation of the Givens gives 7 flops. The multiplication on the left hand and right hand side takes 10 operations, when everything is optimized and the semiseparable part is stored in two vectors. The complexity we get therefore equals:
![]() |