Hi Kiran,
It looks like you're not including all of the dependencies, in
particular the arpack-combined-all jar.
I've not used Scala Worksheet, but there is probably some way to add
jars to it. You'll want to add all of Breeze's dependencies.
-- David
On Mon, Apr 29, 2013 at 7:58 AM, KiranKumar Adam <
kira...@gmail.com> wrote:
> Hello David,
>
> I've an error with following code in the scala worksheet
>
> package kalman
>
> import breeze.linalg._
>
> object test {
> println("Welcome to the Scala worksheet") //> Welcome to the Scala
> worksheet
>
> val temp : DenseVector[Double] = DenseVector(2.0, 3.4)
> //> temp :
> breeze.linalg.DenseVector[Double] = DenseVector(2.0, 3.4)
>
> val m : DenseMatrix[Double] = DenseMatrix((1.0, 1.0),
>
> (1.0, 1.0))
> //> m :
> breeze.linalg.DenseMatrix[Double] = 1.0 1.0
> //| 1.0 1.0
>
> val n : DenseMatrix[Double] = m * m //>
> java.lang.NoClassDefFoundError: org/netlib/blas/Dgemm
> //| at
> breeze.linalg.DenseMatrixMultiplyStuff$DenseMatrixDMulDenseMatrixD$.a
> //|
> pply(DenseMatrix.scala:760)
> //| at
> breeze.linalg.DenseMatrixMultiplyStuff$DenseMatrixDMulDenseMatrixD$.a
> //|
> pply(DenseMatrix.scala:749)
> //| at
> breeze.linalg.NumericOps$class.$times(NumericOps.scala:101)
> //| at
> breeze.linalg.DenseMatrix.$times(DenseMatrix.scala:47)
> //| at
> kalman.test$$anonfun$main$1.apply$mcV$sp(kalman.test.scala:13)
> //| at
> org.scalaide.worksheet.runtime.library.WorksheetSupport$$anonfun$$exe
> //|
> cute$1.apply$mcV$sp(WorksheetSupport.scala:76)
> //| at
> org.scalaide.worksheet.runtime.library.WorksheetSupport$.redirected(W
> //|
> orksheetSupport.scala:65)
> //| at
> org.scalaide.worksheet.runtime.library.WorksheetSupport$.$execute(Wor
> //|
> ksheetSupport.scala:75)
> //| at
> kalman.test$.main(kalman.test.scala:5)
> //| at
> kalman.test.main(kalman.test.scala)
> //| Caused by:
> java.lang.ClassNotFoundException: org.netlib.blas.Dgemm
> }
>
>
> --
> 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/msg/scala-breeze/-/s-X2opyzfkUJ.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>