com.twitter.scalding.mathematics

Matrix

class Matrix[RowT, ColT, ValT] extends WrappedPipe with Serializable

Linear Supertypes
Serializable, WrappedPipe, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Matrix
  2. Serializable
  3. WrappedPipe
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Matrix(rowSym: Symbol, colSym: Symbol, valSym: Symbol, inPipe: Pipe, sizeHint: SizeHint = NoClue)

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. def *[That, Res](that: That)(implicit prod: MatrixProduct[Matrix[RowT, ColT, ValT], That, Res]): Res

  5. def +(that: Matrix[RowT, ColT, ValT])(implicit mon: Monoid[ValT]): Matrix[RowT, ColT, ValT]

  6. def -(that: Matrix[RowT, ColT, ValT])(implicit grp: Group[ValT]): Matrix[RowT, ColT, ValT]

  7. def /(that: Scalar[ValT])(implicit field: algebird.Field[ValT]): Matrix[RowT, ColT, ValT]

  8. def /(that: LiteralScalar[ValT])(implicit field: algebird.Field[ValT]): Matrix[RowT, ColT, ValT]

  9. final def ==(arg0: AnyRef): Boolean

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

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

    Definition Classes
    Any
  12. def binarizeAs[NewValT](implicit mon: Monoid[ValT], ring: Ring[NewValT]): Matrix[RowT, ColT, NewValT]

  13. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. def colL0Normalize(implicit ev: =:=[ValT, Double]): Matrix[RowT, ColT, Double]

  15. def colL1Normalize(implicit ev: =:=[ValT, Double]): Matrix[RowT, ColT, Double]

  16. def colL2Normalize(implicit ev: =:=[ValT, Double]): Matrix[RowT, ColT, Double]

  17. def colMeanCentering(implicit ev: =:=[ValT, Double]): Matrix[RowT, ColT, Double]

  18. def colSizeAveStdev(implicit ev: =:=[ValT, Double]): Matrix[ColT, Int, Double]

  19. val colSym: Symbol

  20. def diagonal(implicit ev: =:=[RowT, ColT]): DiagonalMatrix[RowT, ValT]

  21. def elemWiseOp(that: Matrix[RowT, ColT, ValT])(fn: (ValT, ValT) ⇒ ValT)(implicit mon: Monoid[ValT]): Matrix[RowT, ColT, ValT]

  22. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  23. def equals(that: Any): Boolean

    Definition Classes
    Matrix → AnyRef → Any
  24. def fields: Fields

    Definition Classes
    MatrixWrappedPipe
  25. def filterValues(fn: (ValT) ⇒ Boolean): Matrix[RowT, ColT, ValT]

  26. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  28. def getCol(index: ColT): ColVector[RowT, ValT]

  29. def getRow(index: RowT): RowVector[ColT, ValT]

  30. def hProd(mat: Matrix[RowT, ColT, ValT])(implicit ring: Ring[ValT]): Matrix[RowT, ColT, ValT]

  31. def hasHint: Boolean

  32. def hashCode(): Int

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

    Definition Classes
    Any
  34. def keepColsBy[ValU](that: RowVector[ColT, ValU]): Matrix[RowT, ColT, ValT]

    keeps only those cols that are in the joining rows

  35. def keepElementsBy[ValU](that: Matrix[RowT, ColT, ValU]): Matrix[RowT, ColT, ValT]

    keep only elements in this matrix that also appear in the argument matrix

  36. def keepRowsBy[ValU](that: ColVector[RowT, ValU]): Matrix[RowT, ColT, ValT]

    keeps only those rows that are in the joining column

  37. lazy val mainDiagonal: DiagonalMatrix[RowT, ValT]

    Attributes
    protected
  38. def mapCols(fn: (Iterable[(RowT, ValT)]) ⇒ Iterable[(RowT, ValT)])(implicit mon: Monoid[ValT]): Matrix[RowT, ColT, ValT]

  39. def mapRows(fn: (Iterable[(ColT, ValT)]) ⇒ Iterable[(ColT, ValT)])(implicit mon: Monoid[ValT]): Matrix[RowT, ColT, ValT]

  40. def mapValues[ValU](fn: (ValT) ⇒ ValU)(implicit mon: Monoid[ValU]): Matrix[RowT, ColT, ValU]

  41. def mapWithIndex[ValNew](fn: (ValT, RowT, ColT) ⇒ ValNew)(implicit mon: Monoid[ValNew]): Matrix[RowT, ColT, ValNew]

    like zipWithIndex.

    like zipWithIndex.map but ONLY CHANGES THE VALUE not the index. Note you will only see non-zero elements on the matrix. This does not enumerate the zeros

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

    Definition Classes
    AnyRef
  43. def nonZerosWith[ValU](that: LiteralScalar[ValU]): Matrix[RowT, ColT, (ValT, ValU)]

  44. def nonZerosWith[ValU](that: Scalar[ValU]): Matrix[RowT, ColT, (ValT, ValU)]

  45. final def notify(): Unit

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

    Definition Classes
    AnyRef
  47. lazy val pipe: Pipe

    Definition Classes
    MatrixWrappedPipe
  48. def pipeAs(toFields: Fields): Pipe

  49. def propagate[ColValT](vec: ColVector[ColT, ColValT])(implicit ev: =:=[ValT, Boolean], monT: Monoid[ColValT]): ColVector[RowT, ColValT]

    Considering the matrix as a graph, propagate the column: Does the calculation: \sum_{j where M(i,j) == true) c_j

  50. def reduceColVectors(fn: (ValT, ValT) ⇒ ValT)(implicit mon: Monoid[ValT]): ColVector[RowT, ValT]

  51. def reduceRowVectors(fn: (ValT, ValT) ⇒ ValT)(implicit mon: Monoid[ValT]): RowVector[ColT, ValT]

  52. def removeColsBy[ValU](that: RowVector[ColT, ValU]): Matrix[RowT, ColT, ValT]

    removes those cols that are in the joining column

  53. def removeElementsBy[ValU](that: Matrix[RowT, ColT, ValU]): Matrix[RowT, ColT, ValT]

    removes any elements in this matrix that also appear in the argument matrix

  54. def removeRowsBy[ValU](that: ColVector[RowT, ValU]): Matrix[RowT, ColT, ValT]

    removes those rows that are in the joining column

  55. def rowColValSymbols: Fields

  56. lazy val rowL0Norm: Matrix[RowT, ColT, Double]

    Attributes
    protected
  57. def rowL0Normalize(implicit ev: =:=[ValT, Double]): Matrix[RowT, ColT, Double]

  58. lazy val rowL1Norm: Matrix[RowT, ColT, Double]

    Attributes
    protected
  59. def rowL1Normalize(implicit ev: =:=[ValT, Double]): Matrix[RowT, ColT, Double]

  60. lazy val rowL2Norm: Matrix[RowT, ColT, Double]

    Attributes
    protected
  61. def rowL2Normalize(implicit ev: =:=[ValT, Double]): Matrix[RowT, ColT, Double]

  62. def rowMeanCentering(implicit ev: =:=[ValT, Double]): Matrix[RowT, ColT, Double]

  63. def rowSizeAveStdev(implicit ev: =:=[ValT, Double]): Matrix[RowT, Int, Double]

  64. val rowSym: Symbol

  65. val sizeHint: SizeHint

  66. def sum(implicit mon: Monoid[ValT]): Scalar[ValT]

  67. def sumColVectors(implicit mon: Monoid[ValT]): ColVector[RowT, ValT]

  68. def sumRowVectors(implicit mon: Monoid[ValT]): RowVector[ColT, ValT]

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

    Definition Classes
    AnyRef
  70. def toBlockMatrix[G](grouping: (RowT) ⇒ (G, RowT)): BlockMatrix[G, RowT, ColT, ValT]

  71. def toString(): String

    Definition Classes
    AnyRef → Any
  72. def topColElems(k: Int)(implicit ord: Ordering[ValT]): Matrix[RowT, ColT, ValT]

  73. def topRowElems(k: Int)(implicit ord: Ordering[ValT]): Matrix[RowT, ColT, ValT]

  74. def topRowWithTiny(k: Int)(implicit ord: Ordering[ValT]): Matrix[RowT, ColT, ValT]

    Attributes
    protected
  75. def trace(implicit mon: Monoid[ValT], ev: =:=[RowT, ColT]): Scalar[ValT]

  76. def transpose: Matrix[ColT, RowT, ValT]

  77. val valSym: Symbol

  78. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  81. def withSizeHint(sh: SizeHint): Matrix[RowT, ColT, ValT]

  82. def write(src: Source, outFields: Fields = Fields.NONE)(implicit fd: FlowDef, mode: Mode): Matrix[RowT, ColT, ValT]

    Write the matrix, optionally renaming row,col,val fields to the given fields then return this.

  83. def writePipe(src: Source, outFields: Fields = Fields.NONE)(implicit fd: FlowDef, mode: Mode): Unit

    Definition Classes
    WrappedPipe
  84. def zip[ValU](that: Matrix[RowT, ColT, ValU])(implicit pairMonoid: Monoid[(ValT, ValU)]): Matrix[RowT, ColT, (ValT, ValU)]

  85. def zip[ValU](that: RowVector[ColT, ValU])(implicit pairMonoid: Monoid[(ValT, ValU)]): Matrix[RowT, ColT, (ValT, ValU)]

  86. def zip[ValU](that: ColVector[RowT, ValU])(implicit pairMonoid: Monoid[(ValT, ValU)]): Matrix[RowT, ColT, (ValT, ValU)]

Inherited from Serializable

Inherited from WrappedPipe

Inherited from AnyRef

Inherited from Any

Ungrouped