utils

MatrixUtils

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
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

    Definition Classes
    Any
  14. def matrixToColArray[T](mat: DenseMatrix[T]): Array[DenseVector[T]]

    Converts a matrix to an array of columns.

    Converts a matrix to an array of columns.

    mat

    Input matrix.

    returns

    Array of columns.

  15. def matrixToRowArray[T](mat: DenseMatrix[T]): Array[DenseVector[T]]

    Converts a matrix to an array of rows.

    Converts a matrix to an array of rows.

    mat

    Input matrix.

    returns

    Array of rows.

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

    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  19. def rowsToMatrix[T](inArr: Array[DenseVector[T]])(implicit arg0: ClassTag[T]): DenseMatrix[T]

    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.

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

    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.

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

    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.

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

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

    Definition Classes
    AnyRef
  24. def toString(): String

    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped