Class

com.twitter.scalding.mathematics

OneR

Related Doc: package mathematics

Permalink

case class OneR[C, V]()(implicit colOrd: Ordering[C]) extends Matrix2[Unit, C, V] with scala.Product with Serializable

Infinite row vector - only for intermediate computations

Source
Matrix2.scala
Linear Supertypes
Serializable, scala.Product, Equals, Matrix2[Unit, C, V], Serializable, AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. OneR
  2. Serializable
  3. Product
  4. Equals
  5. Matrix2
  6. Serializable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new OneR()(implicit colOrd: Ordering[C])

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def #*#(that: Matrix2[Unit, C, V])(implicit ring: Ring[V]): Matrix2[Unit, C, V]

    Permalink

    Represents the pointwise, or Hadamard, product of two matrices.

    Represents the pointwise, or Hadamard, product of two matrices.

    Definition Classes
    Matrix2
  4. def *(that: Scalar2[V])(implicit ring: Ring[V], mj: MatrixJoiner2): Matrix2[Unit, C, V]

    Permalink
    Definition Classes
    Matrix2
  5. def *[C2](that: Matrix2[C, C2, V])(implicit ring: Ring[V], mj: MatrixJoiner2): Matrix2[Unit, C2, V]

    Permalink
    Definition Classes
    Matrix2
  6. def +(that: Matrix2[Unit, C, V])(implicit mon: Monoid[V]): Matrix2[Unit, C, V]

    Permalink
    Definition Classes
    Matrix2
  7. def -(that: Matrix2[Unit, C, V])(implicit g: Group[V]): Matrix2[Unit, C, V]

    Permalink
    Definition Classes
    Matrix2
  8. def /(that: Scalar2[V])(implicit field: algebird.Field[V]): Matrix2[Unit, C, V]

    Permalink
    Definition Classes
    Matrix2
  9. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def ^(power: Int)(implicit ev: =:=[Unit, C], ring: Ring[V], mj: MatrixJoiner2): Matrix2[Unit, Unit, V]

    Permalink

    equivalent to multiplying this matrix by itself, power times

    equivalent to multiplying this matrix by itself, power times

    Definition Classes
    Matrix2
  11. def asCol[C2](c2: C2)(implicit ev: =:=[C, Unit], colOrd: Ordering[C2]): Matrix2[Unit, C2, V]

    Permalink
    Definition Classes
    Matrix2
  12. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  13. def asRow[R2](r2: R2)(implicit ev: =:=[Unit, Unit], rowOrd: Ordering[R2]): Matrix2[R2, C, V]

    Permalink

    Consider this Matrix as the r2 row of a matrix.

    Consider this Matrix as the r2 row of a matrix. The current matrix must be a row, which is to say, its row type must be Unit.

    Definition Classes
    Matrix2
  14. def binarizeAs[NewValT](implicit mon: Monoid[V], ring: Ring[NewValT]): Matrix2[Unit, C, NewValT]

    Permalink
    Definition Classes
    Matrix2
  15. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. implicit val colOrd: Ordering[C]

    Permalink
    Definition Classes
    OneRMatrix2
  17. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  20. def getColumn(index: C): Matrix2[Unit, Unit, V]

    Permalink
    Definition Classes
    Matrix2
  21. def getRow(index: Unit): Matrix2[Unit, C, V]

    Permalink
    Definition Classes
    Matrix2
  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. def negate(implicit g: Group[V]): Nothing

    Permalink
    Definition Classes
    OneRMatrix2
  25. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  27. def optimizedSelf: Matrix2[Unit, C, V]

    Permalink

    Users should never need this.

    Users should never need this. This is the current Matrix2, but in most optimized form. Usually, you will just do matrix operations until you eventually call write or toTypedPipe

    Definition Classes
    Matrix2
  28. def propagate[C2, VecV](vec: Matrix2[C, C2, VecV])(implicit ev: =:=[V, Boolean], mon: Monoid[VecV], mj: MatrixJoiner2): Matrix2[Unit, C2, VecV]

    Permalink

    the result is the same as considering everything on the this to be like a 1 value so we just sum, using only a monoid on VecV, where this Matrix has the value true.

    the result is the same as considering everything on the this to be like a 1 value so we just sum, using only a monoid on VecV, where this Matrix has the value true. This is useful for graph propagation of monoids, such as sketchs like HyperLogLog, BloomFilters or CountMinSketch. TODO This is a special kind of product that could be optimized like Product is

    Definition Classes
    Matrix2
  29. def propagateRow[C2](mat: Matrix2[C, C2, Boolean])(implicit ev: =:=[Unit, Unit], mon: Monoid[V], mj: MatrixJoiner2): Matrix2[Unit, C2, V]

    Permalink
    Definition Classes
    Matrix2
  30. def rowL1Normalize(implicit num: Numeric[V], mj: MatrixJoiner2): Matrix2[Unit, C, Double]

    Permalink

    Row L1 normalization After this operation, the sum(|x|) alone each row will be 1.

    Row L1 normalization After this operation, the sum(|x|) alone each row will be 1.

    Definition Classes
    Matrix2
  31. def rowL2Normalize(implicit num: Numeric[V], mj: MatrixJoiner2): Matrix2[Unit, C, Double]

    Permalink

    Row L2 normalization After this operation, the sum(|x|^2) along each row will be 1.

    Row L2 normalization After this operation, the sum(|x|^2) along each row will be 1.

    Definition Classes
    Matrix2
  32. def rowOrd: Ordering[Unit]

    Permalink
    Definition Classes
    OneRMatrix2
  33. val sizeHint: SizeHint

    Permalink
    Definition Classes
    OneRMatrix2
  34. def sumColVectors(implicit ring: Ring[V], mj: MatrixJoiner2): Matrix2[Unit, Unit, V]

    Permalink
    Definition Classes
    Matrix2
  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  36. def toTypedPipe: Nothing

    Permalink

    Convert the current Matrix to a TypedPipe

    Convert the current Matrix to a TypedPipe

    Definition Classes
    OneRMatrix2
  37. def trace(implicit mon: Monoid[V], ev: =:=[Unit, C]): Scalar2[V]

    Permalink
    Definition Classes
    Matrix2
  38. def transpose: OneC[C, V]

    Permalink
    Definition Classes
    OneRMatrix2
  39. def unary_-(implicit g: Group[V]): Matrix2[Unit, C, V]

    Permalink
    Definition Classes
    Matrix2
  40. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. def write(sink: TypedSink[(Unit, C, V)])(implicit fd: FlowDef, m: Mode): Matrix2[Unit, C, V]

    Permalink
    Definition Classes
    Matrix2

Inherited from Serializable

Inherited from scala.Product

Inherited from Equals

Inherited from Matrix2[Unit, C, V]

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped