Yes, with that code it was my mistake. But with the matrix calculations it was not. Anyway i played with that code and found out that placing string
denomerator = matrix_A_src[i][i];
inside of the loop was a bad idea. So when i moved that string outside of the loop i got my code work.
But than i stuck with another problem. I'm trying to compile generated code for Cyclone 10 GX and Quartus 17.1 completely stucks at analysis step. The error message says it is not enough memory for compiling this code. But as you can see the source code is very simple. I played with #pragma unroll and sometimes HDL code just can't be synthesized because it is too big for Cyclone 10 GX.
So my next question is how can i find out why does my code is synthesized in some wrong way leading to a very large area?