org.saddle

mat

package mat

Visibility
  1. Public
  2. All

Type Members

  1. class MatAny[T] extends Mat[T]

    A Mat instance containing elements of type Any

  2. class MatBool extends Mat[Boolean]

    A Mat instance containing elements of type Boolean

  3. class MatCols[A] extends IndexedSeq[Vec[A]] with Serializable

    An IndexedSeq of Vecs which must all have the same length; a container for 2D data for a Frame.

  4. class MatDouble extends Mat[Double]

    A Mat instance containing elements of type Double

  5. class MatInt extends Mat[Int]

    A Mat instance containing elements of type Int

  6. class MatLong extends Mat[Long]

    A Mat instance containing elements of type Long

Value Members

  1. object MatCols extends Serializable

  2. object MatMath extends AnyRef

    Matrix mathematical helper routines.

  3. def diag(v: Vec[Double]): Mat[Double]

    Given a vector, create a matrix whose diagonal entries equal the vector, with zeros off-diagonal.

    Given a vector, create a matrix whose diagonal entries equal the vector, with zeros off-diagonal.

    v

    The vector of source data

    Definition Classes
    package
  4. def ident(n: Int): Mat[Double]

    Create a square identity matrix of dimension n x n

    Create a square identity matrix of dimension n x n

    n

    The number of rows/columns of the square matrix

    Definition Classes
    package
  5. def ones(rows: Int, cols: Int): Mat[Double]

    Definition Classes
    package
  6. def rand(rows: Int, cols: Int): Mat[Double]

    Generate a uniform random Mat[Double] of a certain size

    Generate a uniform random Mat[Double] of a certain size

    rows

    Number of rows

    cols

    Number of rows

    Definition Classes
    package
  7. def randI(rows: Int, cols: Int): Mat[Int]

    Generate a uniform random Mat[Int] of a certain size

    Generate a uniform random Mat[Int] of a certain size

    rows

    Number of rows

    cols

    Number of rows

    Definition Classes
    package
  8. def randl(rows: Int, cols: Int): Mat[Long]

    Generate a uniform random Mat[Long] of a certain size

    Generate a uniform random Mat[Long] of a certain size

    rows

    Number of rows

    cols

    Number of rows

    Definition Classes
    package
  9. def randn(rows: Int, cols: Int): Mat[Double]

    Generate a gaussian(0, 1) random Mat[Double] of a certain size

    Generate a gaussian(0, 1) random Mat[Double] of a certain size

    rows

    Number of rows

    cols

    Number of rows

    Definition Classes
    package
  10. def randn2(rows: Int, cols: Int, mu: Double, sigma: Double): Mat[Double]

    Generate a gaussian(mu, sigma) random Mat[Double] of a certain size

    Generate a gaussian(mu, sigma) random Mat[Double] of a certain size

    rows

    Number of rows

    cols

    Number of rows

    mu

    Mean of distribution

    sigma

    Stdev of distribution

    Definition Classes
    package
  11. def randp(rows: Int, cols: Int): Mat[Double]

    Generate a uniform random positive Mat[Double] of a certain size

    Generate a uniform random positive Mat[Double] of a certain size

    rows

    Number of rows

    cols

    Number of rows

    Definition Classes
    package
  12. def randpi(rows: Int, cols: Int): Mat[Int]

    Generate a uniform random positive Mat[Int] of a certain size

    Generate a uniform random positive Mat[Int] of a certain size

    rows

    Number of rows

    cols

    Number of rows

    Definition Classes
    package
  13. def randpl(rows: Int, cols: Int): Mat[Long]

    Generate a uniform random positive Mat[Long] of a certain size

    Generate a uniform random positive Mat[Long] of a certain size

    rows

    Number of rows

    cols

    Number of rows

    Definition Classes
    package
  14. def repeat[T](v: Array[T], n: Int, asRows: Boolean)(implicit arg0: ST[T]): Mat[T]

    Repeats an array in a particular direction to create a 2D matrix

    Repeats an array in a particular direction to create a 2D matrix

    T

    type of elements in array

    v

    array of values to repeat

    n

    number of repetitions

    asRows

    if true, returns row-tiling; default is column-tiling

    Definition Classes
    package
  15. def zeros(rows: Int, cols: Int): Mat[Double]

    Definition Classes
    package