2

I want to find the rank of a very sparse, quite rectangular matrix mat, but I'm running out of RAM (I have 16 GB) if I try to use MatrixRank or RowReduce. The particular matrix I am considering is 44216 by 5958 and its Tally is

Tally@Flatten@Normal@mat

{{1, 89348}, {0, 263290898}, {-1, 58682}}

I have also tried to produce the Gram matrix

gram = Transpose[mat].mat

since it has the same rank, but this matrix is obviously much less sparse. I also run out of RAM trying to do MatrixRank[gram].

Also, should one take different approaches if the rank can be assumed to be small, or on the other hand, large (almost full rank)?

Marius Ladegård Meyer
  • 6,805
  • 1
  • 17
  • 26

0 Answers0