Object

keystoneml.utils

MatrixUtils

Related Doc: package utils

Permalink

object MatrixUtils extends Serializable

A collection of utilities useful for matrices.

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MatrixUtils
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addMatrices(a: IndexedSeq[DenseMatrix[Double]], b: IndexedSeq[DenseMatrix[Double]]): IndexedSeq[DenseMatrix[Double]]

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def computeMean(in: RDD[DenseMatrix[Double]]): DenseVector[Double]

    Permalink
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. def isSorted[T](s: Seq[T])(implicit cmp: Ordering[T]): Boolean

    Permalink

    Check if a given sequence is sorted.

    Check if a given sequence is sorted.

    s

    Sequence that needs to be checked.

    returns

    true if the squence is sorted. false otherwise

  15. def matrixToColArray[T](mat: DenseMatrix[T])(implicit arg0: ClassTag[T]): Array[DenseVector[T]]

    Permalink

    Converts a matrix to an array of columns.

    Converts a matrix to an array of columns.

    mat

    Input matrix.

    returns

    Array of columns.

  16. def matrixToRowArray[T](mat: DenseMatrix[T])(implicit arg0: ClassTag[T]): Array[DenseVector[T]]

    Permalink

    Converts a matrix to an array of rows.

    Converts a matrix to an array of rows.

    mat

    Input matrix.

    returns

    Array of rows.

  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. def rowsToMatrix[T](in: RDD[DenseVector[T]])(implicit arg0: ClassTag[T]): RDD[DenseMatrix[T]]

    Permalink

    Converts a RDD of DenseVector to a RDD of DenseMatrix such that vectors in each partition are stacked into a rows to make a DenseMatrix.

    Converts a RDD of DenseVector to a RDD of DenseMatrix such that vectors in each partition are stacked into a rows to make a DenseMatrix.

    in

    RDD of DenseVectors (row)

    returns

    RDD containing dense matrices

  21. def rowsToMatrix[T](inArr: Array[DenseVector[T]])(implicit arg0: ClassTag[T]): DenseMatrix[T]

    Permalink

    Converts an array of DenseVector to a matrix where each vector is a row.

    Converts an array of DenseVector to a matrix where each vector is a row.

    inArr

    Array of DenseVectors (rows)

    returns

    A row matrix.

  22. def rowsToMatrix[T](in: TraversableOnce[DenseVector[T]])(implicit arg0: ClassTag[T]): DenseMatrix[T]

    Permalink

    Converts a sequence of DenseVector to a matrix where each vector is a row.

    Converts a sequence of DenseVector to a matrix where each vector is a row.

    in

    Sequence of of DenseVectors (rows)

    returns

    A row matrix.

  23. def rowsToMatrixIter[T](in: TraversableOnce[DenseVector[T]])(implicit arg0: ClassTag[T]): Iterator[DenseMatrix[T]]

    Permalink

    Converts a sequence of DenseVector to a matrix where each vector is a row.

    Converts a sequence of DenseVector to a matrix where each vector is a row.

    in

    Sequence of of DenseVectors (rows)

    returns

    Iterator with a single element if rows is non-empty. Empty iterator otherwise.

  24. def sampleRows(in: DenseMatrix[Double], numSamples: Int): DenseMatrix[Double]

    Permalink

    Draw samples rows from a matrix.

    Draw samples rows from a matrix.

    in

    Input matrix.

    numSamples

    Number of samples to draw.

    returns

    A matrix constructed from a sample of the rows.

  25. def shuffleArray[T](arr: Array[T], seed: Int = 42): Array[T]

    Permalink
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  28. def truncateLineage[T](in: RDD[T], cache: Boolean)(implicit arg0: ClassTag[T]): RDD[T]

    Permalink
  29. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped