Inverse huge matrix with tall array
Hi,
I am trying to find x in my system Ax=b. A is a huge matrix, it is a size of 10 billion *9, and out of my memory, b is 10 billion *1 vector.
Therefore, I am using tall array, while I don know how to compute the inverse of A? (pseudo inverse)
One answer is here, while it is incorrect: https://uk.mathworks.com/matlabcentral/answers/530823-taking-the-inverse-of-a-tall-array-to-solve-a-linear-system-of-equations
A = tall(ds);
b_t = tall(ones(1,1));
SOL = gather(Ab);
This code works with SOL is 9*1 vector, however, the vector b_t has all elements equal to 1.
If I use my verctor b, it shows an error with incompatible tall array argument in tall/qrLeftSolve.
Any one can help this case?
Thanks in advance.Hi,
I am trying to find x in my system Ax=b. A is a huge matrix, it is a size of 10 billion *9, and out of my memory, b is 10 billion *1 vector.
Therefore, I am using tall array, while I don know how to compute the inverse of A? (pseudo inverse)
One answer is here, while it is incorrect: https://uk.mathworks.com/matlabcentral/answers/530823-taking-the-inverse-of-a-tall-array-to-solve-a-linear-system-of-equations
A = tall(ds);
b_t = tall(ones(1,1));
SOL = gather(Ab);
This code works with SOL is 9*1 vector, however, the vector b_t has all elements equal to 1.
If I use my verctor b, it shows an error with incompatible tall array argument in tall/qrLeftSolve.
Any one can help this case?
Thanks in advance. Hi,
I am trying to find x in my system Ax=b. A is a huge matrix, it is a size of 10 billion *9, and out of my memory, b is 10 billion *1 vector.
Therefore, I am using tall array, while I don know how to compute the inverse of A? (pseudo inverse)
One answer is here, while it is incorrect: https://uk.mathworks.com/matlabcentral/answers/530823-taking-the-inverse-of-a-tall-array-to-solve-a-linear-system-of-equations
A = tall(ds);
b_t = tall(ones(1,1));
SOL = gather(Ab);
This code works with SOL is 9*1 vector, however, the vector b_t has all elements equal to 1.
If I use my verctor b, it shows an error with incompatible tall array argument in tall/qrLeftSolve.
Any one can help this case?
Thanks in advance. matrix array MATLAB Answers — New Questions