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