IntelliJ doesn't infer type of a simple matrix multiplication

32 views
Skip to first unread message

thomasfo...@gmail.com

unread,
Nov 23, 2016, 1:28:51 PM11/23/16
to Scala Breeze
Hello,

I'm facing a strange type issue.
In my case, data is a DenseMatrix[Double]:

    val V = data.t *(data)

Nonetheless, V has type Nothing (instead of type DenseMatrix[Double])

I'm using IntelliJ with scala 2.11.

What's wrong ?

Thanks
Regards

Thomas


David Hall

unread,
Nov 23, 2016, 1:30:03 PM11/23/16
to scala-...@googlegroups.com
IntelliJ gets confused by Breeze with some frequency. I've more or less given up trying to minimize bug cases. 

Just add the type ascription yourself. Sorry :(

-- David

--
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+unsubscribe@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/47305654-6a59-4828-a55d-072cdf9e3f5f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages