Package

org.emmalanguage.lib

linalg

Permalink

package linalg

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

Type Members

  1. type DVector = DenseVector

    Permalink
  2. implicit final class DVectorOps extends AnyVal

    Permalink
  3. type SVector = SparseVector

    Permalink
  4. type Vector = apache.spark.ml.linalg.Vector

    Permalink

Value Members

  1. def dense(values: Array[Double]): DVector

    Permalink
  2. def nonNegativeMod(x: Int, mod: Int): Int

    Permalink

    Calculates 'x' modulo 'mod', takes to consideration sign of x, i.e.

    Calculates 'x' modulo 'mod', takes to consideration sign of x, i.e. if 'x' is negative, than 'x' % 'mod' is negative too so function return (x % mod) + mod in that case.

    Definition Classes
    MathUtil
  3. def norm(vector: Vector, p: Double): Double

    Permalink
  4. def shuffle(n: Int)(r: RanHash): Array[Int]

    Permalink

    Firscher-Yates shuffle.

    Firscher-Yates shuffle.

    Definition Classes
    MathUtil
  5. def sparse(size: Int, elements: Seq[(Int, Double)]): SVector

    Permalink
  6. def sparse(size: Int, indices: Array[Int], values: Array[Double]): SVector

    Permalink
  7. def sqdist(x: Vector, y: Vector): Double

    Permalink
  8. def sum(x: DVector): Double

    Permalink
  9. def zeros(size: Int): DVector

    Permalink

Inherited from MathUtil

Inherited from AnyRef

Inherited from Any

Ungrouped