Scala (Breeze) + Intellij: Cannot resolve symbol *

576 views
Skip to first unread message

a...@clari.com

unread,
Jul 13, 2015, 5:37:42 PM7/13/15
to scala-...@googlegroups.com
Hi Everyone,

I'm using Breeze to to do sum simple linear algebra operations on dense matrices. I'm using the Intellij IDEA. Here is an snippet of my code:

    import breeze.linalg._    
    val X1:DenseMatrix[Double] = DenseMatrix.zeros[Double](10, 5) + 1.0
    val n1 : Double = X1.rows.toDouble
    val one_tall_t1  = DenseMatrix.zeros[Double](1, n1.toInt) + 1.0
    val mu1=one_tall_t1*X1/n1

In the last line, the symbols * and / are shown with red color in the IDE. The error message is "Cannot resolve the symbol *". 

But Intellij builds the program without any errors, and it runs fine.

I've been trying to find out the reason. In some posts people suggested to invalidate cache and restart Intellij, but does not solve my issue.

I appreciate your comments or solutions!

Thanks, 

Ali

David Hall

unread,
Jul 13, 2015, 5:38:07 PM7/13/15
to scala-...@googlegroups.com

--
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/196811e5-97ed-49e3-bbed-c8b4e9324dc2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages