java.lang.ArrayIndexOutOfBoundsException: 0 when summing up 5 dense matrices

15 views
Skip to first unread message

Daniel Korzekwa

unread,
Jun 28, 2016, 6:03:38 AM6/28/16
to Scala Breeze
Hello,

I faced an intermittent breeze error when summing up 5 dense matrices and I have no idea how could that occur, struggling to replicate it. Breeze 0.12

Stack trace:

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
at breeze.linalg.DenseVector$canDaxpy$.apply(DenseVector.scala:595)
at breeze.linalg.DenseVector$$anon$3.apply(DenseVector.scala:581)
at breeze.linalg.DenseVector$$anon$3.apply(DenseVector.scala:579)
at breeze.linalg.NumericOps$class.$colon$plus$eq(NumericOps.scala:189)
at breeze.linalg.DenseVector.$colon$plus$eq(DenseVector.scala:51)
at breeze.linalg.NumericOps$class.$plus$eq(NumericOps.scala:201)
at breeze.linalg.DenseVector.$plus$eq(DenseVector.scala:51)
at breeze.linalg.operators.DenseMatrixOps$$anon$39.apply(DenseMatrixOps.scala:447)
at breeze.linalg.operators.DenseMatrixOps$$anon$39.apply(DenseMatrixOps.scala:451)
at breeze.linalg.operators.DenseMatrixOps$$anon$153.apply(DenseMatrixOps.scala:673)
at breeze.linalg.operators.DenseMatrixOps$$anon$153.apply(DenseMatrixOps.scala:670)
at breeze.linalg.NumericOps$class.$plus(NumericOps.scala:172)
at breeze.linalg.DenseMatrix.$plus(DenseMatrix.scala:52)
at model.segmentproduct.SegmentProductCovFunc.cov(SegmentProductCovFunc.scala:21)

SegmentProductCovFunc.scala:21:

 val cov = cov1 + cov2 + cov3 + cov4 + cov5

cov1 to cov5 are dense matrices of the same size NxN, where N might be any number between 200 and 500.

Thanks.
Reply all
Reply to author
Forward
0 new messages