int n = 0; //n is the dimensionality of our equations, nxn matrix float r[] = new float[N]; //residues vector b-Ax float x[] = new float[N]; //variables vector, will be returned into V1[] drawn as blue curve float p[] = new float[N]; //temp vector float q[] = new float[N]; //temp vector int xmap[] = new int[N]; //xmap represents the mapping from points on [0..N] range to [0..n] range. It is implicitly used for the matrix A. void lorInit() { int index = 0; n=0; for(int i=0; i