คำตอบ Matrix Market

  • 17 มกราคม 2555 16:51
     
     

    Hello there

    I want to know what is the best way to load a matrix market format matrix into Sho's DoubleArray?

    The matrix is pretty large (5,000 * 50,000) but however sparse.

    I tried reading the file line by line and indexing the DoubleArray but it takes almost 3 hours, is there a better way?

     

    Thanks in advance.

ตอบทั้งหมด

  • 13 กุมภาพันธ์ 2555 6:53
     
     คำตอบ

    I use this on a 2 million by 10 million matrix with .6 billion nonzeroes

     this.shoSparse = new ShoNS.Array.SparseDoubleArray(filename, ShoNS.Array.SparseFileFormat.MM, true, ShoNS.Array.SparseStorageFormat.CSR);

    Takes about 20 minutes

    • ทำเครื่องหมายเป็นคำตอบโดย Menna M 3 เมษายน 2555 16:08
    •