Breeze could take any type (Int, Long, Double, and Float) in the matrix
template.


Sincerely,

DB Tsai
-------------------------------------------------------
My Blog: https://www.dbtsai.com
LinkedIn: https://www.linkedin.com/in/dbtsai


On Mon, May 5, 2014 at 2:56 PM, Debasish Das <debasish.da...@gmail.com>wrote:

> Is this a breeze issue or breeze can take templates on float / double ?
>
> If breeze can take templates then it is a minor fix for Vectors.scala right
> ?
>
> Thanks.
> Deb
>
>
> On Mon, May 5, 2014 at 2:45 PM, DB Tsai <dbt...@stanford.edu> wrote:
>
> > +1  Would be nice that we can use different type in Vector.
> >
> >
> > Sincerely,
> >
> > DB Tsai
> > -------------------------------------------------------
> > My Blog: https://www.dbtsai.com
> > LinkedIn: https://www.linkedin.com/in/dbtsai
> >
> >
> > On Mon, May 5, 2014 at 2:41 PM, Debasish Das <debasish.da...@gmail.com
> > >wrote:
> >
> > > Hi,
> > >
> > > Why mllib vector is using double as default ?
> > >
> > > /**
> > >
> > >  * Represents a numeric vector, whose index type is Int and value type
> is
> > > Double.
> > >
> > >  */
> > >
> > > trait Vector extends Serializable {
> > >
> > >
> > >   /**
> > >
> > >    * Size of the vector.
> > >
> > >    */
> > >
> > >   def size: Int
> > >
> > >
> > >   /**
> > >
> > >    * Converts the instance to a double array.
> > >
> > >    */
> > >
> > >   def toArray: Array[Double]
> > >
> > > Don't we need a template on float/double ? This will give us memory
> > > savings...
> > >
> > > Thanks.
> > >
> > > Deb
> > >
> >
>

Reply via email to