Class

com.twitter.scalding.mathematics

Sum

Related Doc: package mathematics

Permalink

case class Sum[R, C, V](left: Matrix2[R, C, V], right: Matrix2[R, C, V], mon: Monoid[V]) extends Matrix2[R, C, V] with scala.Product with Serializable

Source
Matrix2.scala
Linear Supertypes
Serializable, scala.Product, Equals, Matrix2[R, C, V], Serializable, AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Sum
  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 Sum(left: Matrix2[R, C, V], right: Matrix2[R, C, V], mon: Monoid[V])

    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[R, C, V])(implicit ring: Ring[V]): Matrix2[R, 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[R, C, V]

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. def ^(power: Int)(implicit ev: =:=[R, C], ring: Ring[V], mj: MatrixJoiner2): Matrix2[R, R, 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[R, C2, V]

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

    Permalink
    Definition Classes
    Any
  13. def asRow[R2](r2: R2)(implicit ev: =:=[R, 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[R, 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
    SumMatrix2
  17. def collectAddends(sum: Sum[R, C, V]): List[TypedPipe[(R, C, V)]]

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

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  24. val left: Matrix2[R, C, V]

    Permalink
  25. val mon: Monoid[V]

    Permalink
  26. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  27. def negate(implicit g: Group[V]): Sum[R, C, V]

    Permalink
    Definition Classes
    SumMatrix2
  28. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  30. def optimizedSelf: Matrix2[R, 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
  31. def propagate[C2, VecV](vec: Matrix2[C, C2, VecV])(implicit ev: =:=[V, Boolean], mon: Monoid[VecV], mj: MatrixJoiner2): Matrix2[R, 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
  32. def propagateRow[C2](mat: Matrix2[C, C2, Boolean])(implicit ev: =:=[R, Unit], mon: Monoid[V], mj: MatrixJoiner2): Matrix2[Unit, C2, V]

    Permalink
    Definition Classes
    Matrix2
  33. val right: Matrix2[R, C, V]

    Permalink
  34. def rowL1Normalize(implicit num: Numeric[V], mj: MatrixJoiner2): Matrix2[R, 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
  35. def rowL2Normalize(implicit num: Numeric[V], mj: MatrixJoiner2): Matrix2[R, 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
  36. implicit val rowOrd: Ordering[R]

    Permalink
    Definition Classes
    SumMatrix2
  37. val sizeHint: SizeHint

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

    Permalink
    Definition Classes
    SumMatrix2
  39. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  40. lazy val toTypedPipe: TypedPipe[(R, C, V)]

    Permalink

    Convert the current Matrix to a TypedPipe

    Convert the current Matrix to a TypedPipe

    Definition Classes
    SumMatrix2
  41. def trace(implicit mon: Monoid[V], ev: =:=[R, C]): Scalar2[V]

    Permalink
    Definition Classes
    SumMatrix2
  42. lazy val transpose: Sum[C, R, V]

    Permalink
    Definition Classes
    SumMatrix2
  43. def unary_-(implicit g: Group[V]): Matrix2[R, C, V]

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. implicit def withOrderedSerialization: Ordering[(R, C)]

    Permalink
  48. def write(sink: TypedSink[(R, C, V)])(implicit fd: FlowDef, m: Mode): Matrix2[R, C, V]

    Permalink
    Definition Classes
    Matrix2

Inherited from Serializable

Inherited from scala.Product

Inherited from Equals

Inherited from Matrix2[R, C, V]

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped