I am trying to get the cross-product of two "Large matrices" in R. Unfortunately, the data cannot be disclosed here, but the dimensions are 177304*23, and 23*177304, so that the results should have the dimensions 177304*177304.
As my RAM is 8 GB, I have been using the FBM-class to store the matrices in the Disk Storage Space instead. But when I use the function big_cprodMat to find the crossproduct, it seems to first solve the product using a matrix class-object as the output and R crashes instead.
Is there anything I could do to avoid this?
I'm new to the website and greatly appreciate any help anyone could offer.
Using a smaller example:
You can fill the resulting matrix by blocks (note that it will take 234 GB on disk for the size you ask for):
Do not hesitate to open an issue on the GitHub repo of {bigstatsr}.