I use extensively the julia's linear equation solver res = X\b
. I have to use it millions of times in my program because of parameter variation. This was working ok because I was using small dimensions (up to 30
). Now that I want to analyse bigger systems, up to 1000
, the linear solver is no longer efficient.
I think there can be a work around. However I must say that sometimes my X matrix is dense, and sometimes is sparse, so I need something that works fine for both cases.
The b
vector is a vector with all zeroes, except for one entry which is always 1
(actually it is always the last entry). Moreover, I don't need all the res
vector, just the first entry of it.