org.apache.mahout.math

scalabindings

package scalabindings

Mahout matrices and vectors' scala syntactic sugar

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

Type Members

  1. class ElementOps extends AnyRef

  2. type MDBinaryFunc = (Matrix, Double, Option[Matrix]) ⇒ Matrix

  3. type MMBinaryFunc = (Matrix, Matrix, Option[Matrix]) ⇒ Matrix

    Binary matrix-matrix operations which may save result in-place, optionally

  4. type MMUnaryFunc = (Matrix, Option[Matrix]) ⇒ Matrix

    Matrix-matrix unary func

  5. type MVBinaryFunc = (Matrix, Vector, Option[Matrix]) ⇒ Matrix

  6. class MatlabLikeMatrixOps extends MatrixOps

  7. class MatlabLikeTimesOps extends AnyRef

  8. class MatlabLikeVectorOps extends VectorOps

    R-like operators.

  9. class MatrixOps extends AnyRef

  10. final class RLikeDoubleScalarOps extends AnyVal

  11. class RLikeMatrixOps extends MatrixOps

  12. class RLikeVectorOps extends VectorOps

    R-like operators

  13. type VMBinaryFunc = (Vector, Matrix, Option[Matrix]) ⇒ Matrix

  14. class VectorOps extends AnyRef

    Syntactic sugar for mahout vectors

Value Members

  1. final val ::: Range

  2. object MMul extends (Matrix, Matrix, Option[Matrix]) ⇒ Matrix

  3. object MatlabLikeOps

    Matlab-like operators.

  4. object MatrixOps

  5. object RLikeOps

    R-like operators.

  6. def chol(m: Matrix, pivoting: Boolean = false): CholeskyDecomposition

  7. def colMeanStdevs(mxA: Matrix): (Vector, Vector)

    Compute column-wise means and stdevs.

    Compute column-wise means and stdevs.

    mxA

    input

    returns

    colMeans → colStdevs

  8. def colMeanVars(mxA: Matrix): (Vector, Vector)

    Compute column-wise means and variances.

    Compute column-wise means and variances.

    returns

    colMeans → colVariances

  9. def dense[R](rows: R*): DenseMatrix

    Create dense matrix out of inline arguments -- rows -- which can be tuples, iterables of Double, or just single Number (for columnar vectors)

    Create dense matrix out of inline arguments -- rows -- which can be tuples, iterables of Double, or just single Number (for columnar vectors)

    R
    rows
    returns

  10. def diag(v: Double, size: Int): DiagonalMatrix

  11. def diagv(v: Vector): DiagonalMatrix

  12. def dist(mxX: Matrix, mxY: Matrix): Matrix

  13. def dist(mxX: Matrix): Matrix

  14. def dvec(numbers: Number*): DenseVector

  15. def dvec(ddata: TraversableOnce[Double]): DenseVector

  16. def dvec(fromV: Vector): DenseVector

  17. def eigen(m: Matrix): (Matrix, Vector)

    Computes Eigendecomposition of a symmetric matrix

    Computes Eigendecomposition of a symmetric matrix

    m

    symmetric input matrix

    returns

    (V, eigen-values-vector)

  18. def eigenFull(m: Matrix, symmetric: Boolean = true): Unit

    More general version of eigen decomposition

    More general version of eigen decomposition

    m
    symmetric
    returns

    (V, eigenvalues-real-vector, eigenvalues-imaginary-vector)

  19. def eye(size: Int): DiagonalMatrix

  20. def mabs(m: Matrix): Matrix

  21. def mexp(m: Matrix): Matrix

  22. def mlog(m: Matrix): Matrix

  23. def msignum(m: Matrix): Matrix

  24. def msqrt(m: Matrix): Matrix

  25. def prod2Vec(s: Product): DenseVector

  26. def qr(m: Matrix): (Matrix, Matrix)

    QR.

    QR.

    Right now Mahout's QR seems to be using argument for in-place transformations, so the matrix context gets messed after this. Hence we force cloning of the argument before passing it to Mahout's QR so to keep expected semantics.

    m
    returns

    (Q,R)

  27. implicit def seq2Vector(s: TraversableOnce[AnyVal]): DenseVector

  28. def solve(a: Matrix, b: Vector): Vector

    Solution x of A*x = b using QR-Decomposition, where A is a square, non-singular matrix.

    Solution x of A*x = b using QR-Decomposition, where A is a square, non-singular matrix.

    a
    b
    returns

    (x)

  29. def solve(a: Matrix): Matrix

    Solution A^{-1} of A*A^{-1} = I using QR-Decomposition, where A is a square, non-singular matrix.

    Solution A^{-1} of A*A^{-1} = I using QR-Decomposition, where A is a square, non-singular matrix. Here only for compatibility with R semantics.

    a
    returns

    (A^{-1})

  30. def solve(a: Matrix, b: Matrix): Matrix

    Solution X of A*X = B using QR-Decomposition, where A is a square, non-singular matrix.

    Solution X of A*X = B using QR-Decomposition, where A is a square, non-singular matrix.

    a
    b
    returns

    (X)

  31. def sparse(rows: Vector*): SparseRowMatrix

    Default initializes are always row-wise.

    Default initializes are always row-wise. create a sparse, e.g.

    m = sparse(
    (0,5)::(9,3)::Nil,
    (2,3.5)::(7,8)::Nil
    )
    rows
    returns

  32. def sqDist(mxX: Matrix, mxY: Matrix): Matrix

    Pairwise squared distance computation.

    Pairwise squared distance computation.

    mxX

    X, m x d

    mxY

    Y, n x d

    returns

    pairwise squaired distances of row-wise data points in X and Y (m x n)

  33. def sqDist(mxX: Matrix): Matrix

    Compute square distance matrix.

    Compute square distance matrix. We assume data points are row-wise, similar to R's dist().

  34. def svd(m: Matrix): (Matrix, Matrix, DenseVector)

    computes SVD

    computes SVD

    m

    svd input

    returns

    (U,V, singular-values-vector)

  35. def svec(sdata: TraversableOnce[(Int, AnyVal)]): RandomAccessSparseVector

    create a sparse vector out of list of tuple2's

    create a sparse vector out of list of tuple2's

    sdata
    returns

  36. implicit def t10vec(s: (AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal)): Vector

  37. implicit def t11vec(s: (AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal)): Vector

  38. implicit def t12vec(s: (AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal)): Vector

  39. implicit def t13vec(s: (AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal)): Vector

  40. implicit def t14vec(s: (AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal)): Vector

  41. implicit def t15vec(s: (AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal)): Vector

  42. implicit def t16vec(s: (AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal)): Vector

  43. implicit def t17vec(s: (AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal)): Vector

  44. implicit def t18vec(s: (AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal)): Vector

  45. implicit def t19vec(s: (AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal)): Vector

  46. implicit def t1vec(s: (AnyVal)): Vector

  47. implicit def t20vec(s: (AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal)): Vector

  48. implicit def t21vec(s: (AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal)): Vector

  49. implicit def t22vec(s: (AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal)): Vector

  50. implicit def t2vec(s: (AnyVal, AnyVal)): Vector

  51. implicit def t3vec(s: (AnyVal, AnyVal, AnyVal)): Vector

  52. implicit def t4vec(s: (AnyVal, AnyVal, AnyVal, AnyVal)): Vector

  53. implicit def t5vec(s: (AnyVal, AnyVal, AnyVal, AnyVal, AnyVal)): Vector

  54. implicit def t6vec(s: (AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal)): Vector

  55. implicit def t7vec(s: (AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal)): Vector

  56. implicit def t8vec(s: (AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal)): Vector

  57. implicit def t9vec(s: (AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal, AnyVal)): Vector

  58. implicit def tuple2TravOnce2svec[V <: AnyVal](sdata: TraversableOnce[(Int, V)]): RandomAccessSparseVector

  59. def vabs(v: Vector): Vector

  60. def vexp(v: Vector): Vector

  61. def vlog(v: Vector): Vector

  62. def vsignum(v: Vector): Vector

  63. def vsqrt(v: Vector): Vector

Inherited from AnyRef

Inherited from Any

Ungrouped