Class/Object

com.twitter.scalding.mathematics

Matrix

Related Docs: object Matrix | package mathematics

Permalink

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

Source
Matrix.scala
Linear Supertypes
Serializable, WrappedPipe, AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Matrix
  2. Serializable
  3. WrappedPipe
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

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

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

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

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

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

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

    Permalink
  8. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. final def asInstanceOf[T0]: T0

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

    Permalink
  11. def clone(): AnyRef

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

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

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

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

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

    Permalink
  17. val colSym: Symbol

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

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

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

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

    Permalink
    Definition Classes
    Matrix → AnyRef → Any
  22. def fields: Fields

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

    Permalink
  24. def finalize(): Unit

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

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

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

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

    Permalink
  29. def hasHint: Boolean

    Permalink
  30. def hashCode(): Int

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

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

    Permalink

    keeps only those cols that are in the joining rows

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

    Permalink

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

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

    Permalink

    keeps only those rows that are in the joining column

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

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

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

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

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

    Permalink

    like zipWithIndex.map but ONLY CHANGES THE VALUE not the index.

    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

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

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

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

    Permalink
  43. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  45. lazy val pipe: Pipe

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

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

    Permalink

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

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

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

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

    Permalink

    removes those cols that are in the joining column

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

    Permalink

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

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

    Permalink

    removes those rows that are in the joining column

  53. def rowColValSymbols: Fields

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

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

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

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

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

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

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

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

    Permalink
  62. val rowSym: Symbol

    Permalink
  63. val sizeHint: SizeHint

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

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

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

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

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

    Permalink
  69. def toString(): String

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

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

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

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

    Permalink
  74. def transpose: Matrix[ColT, RowT, ValT]

    Permalink
  75. val valSym: Symbol

    Permalink
  76. final def wait(): Unit

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

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

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

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

    Permalink

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

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

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

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

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

    Permalink

Inherited from Serializable

Inherited from WrappedPipe

Inherited from AnyRef

Inherited from Any

Ungrouped