spark-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Debasish Das <debasish.da...@gmail.com>
Subject mllib vector templates
Date Mon, 05 May 2014 21:41:15 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message