Try explicitly importing breeze.stats.distributions.Rand. If that solves
it, then it's almost certainly a bug in scala worksheets. Either way,
probably their bug.


On Mon, May 12, 2014 at 2:05 PM, Kenta Takagaki <notifications@github.com>wrote:

> In math/src/main/scala/breeze/linalg/constructors/random.scala:
>
> > @@ -67,6 +67,7 @@ object randn extends RandomGeneratorUFunc[Double] {
> >
> >    protected def gen(implicit basis: RandBasis = Rand):Rand[Double] = basis.gaussian
> >    protected def genRange(low: Double, high:Double)(implicit basis: RandBasis = Rand):Rand[Double] = basis.gaussian(low, high)
> > +
>
> RandomGeneratorUFunc[T].apply() and the implicits do not resolve
> correctly in Scala Worksheet... but they work perfectly in SBT-project
> math-console.
>
> You wouldn't have any idea why this would be, of the top of your head?
> I was trying to write the Wiki documentation based on Scala Worksheet
> code, and it was driving me crazy...
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/scalanlp/breeze/pull/246/files#r12553450>
> .
>