HashCode is not working in CSCMatrix & DenseMatrix

22 views
Skip to first unread message

Vinod KC

unread,
Sep 2, 2015, 1:30:25 PM9/2/15
to Scala Breeze
Hi ,

I've a made  test to verify hashCode method of CSCMatrix

val bm1 =  new CSCMatrix[Double](values, numRows, numCols, colPtrs, rowIndices)
val bm2 = new CSCMatrix[Double](values, numRows, numCols, colPtrs, rowIndices)

    if(bm1 == bm2){
      println("[==] passed")
      if( bm1.hashCode == bm2.hashCode){
        println(" [hashCode] passed")
      }
      else {
        println(" [hashCode] failed")
      }
    }
    else{
      println(" [==] failed")
    }

Got the output
" [==] passed
 [hashCode] failed"

It seems hashCode method is not implemented in  CSCMatrix & DenseMatrix.

In my application, I need to use matrix hashCode , please let me know whether I'm missing any thing ?

Thjanks
Vinod  KC

David Hall

unread,
Sep 2, 2015, 1:30:49 PM9/2/15
to scala-...@googlegroups.com
yeah it's just not implemented. please open an issue on github.

--
You received this message because you are subscribed to the Google Groups "Scala Breeze" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-breeze...@googlegroups.com.
To post to this group, send email to scala-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-breeze/67339a91-2d25-4ad4-8871-2f74882b1dde%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages