bug icon indicating copy to clipboard operation
bug copied to clipboard

specialization assertionerror on overloaded apply in breeze's DenseVector

Open scabug opened this issue 9 years ago • 2 comments

See https://groups.google.com/forum/m/#!topic/scala-internals/gnvcWsmAPaY:

class Test {
  def foo = {
// workaround: val dv: QuasiTensor[Int,Int] = DenseVector[Int]() // QuasiTensor does not have overloaded apply
   val dv = breeze.linalg.DenseVector[Int]()
   dv.apply(0) // java.lang.AssertionError: assertion failed: List(method apply$mcI$sp, method apply$mcI$sp)
  }
}

fails with breeze 0.11.x and 0.12-SNAPSHOT (the latter was compiled with 2.11.7, afaict)

scabug avatar Dec 01 '15 21:12 scabug

Imported From: https://issues.scala-lang.org/browse/SI-9578?orig=1 Reporter: @adriaanm Affected Versions: 2.10.5, 2.11.7

scabug avatar Dec 01 '15 21:12 scabug

@adriaanm said: Vaguely related to #9089, but as this was fixed in 2.11.5 and the problem still occurs with breeze compiled with 2.11.7, i conclude it's a separate issue.

scabug avatar Dec 01 '15 21:12 scabug