Packages

  • package root
    Definition Classes
    root
  • package org
    Definition Classes
    root
  • package saddle

    Saddle is a Scala Data Library.

    Saddle

    Saddle is a Scala Data Library.

    Saddle provides array-backed, indexed one- and two-dimensional data structures.

    These data structures are specialized on JVM primitives. With them one can often avoid the overhead of boxing and unboxing.

    Basic operations also aim to be robust to missing values (NA's)

    The building blocks are intended to be easily composed.

    The foundational building blocks are:

    Inspiration for Saddle comes from many sources, including the R programming language, the pandas data analysis library for Python, and the Scala collections library.

    Definition Classes
    org
  • package array

    This package contains utilities for working with arrays that are specialized for numeric types.

    This package contains utilities for working with arrays that are specialized for numeric types.

    Definition Classes
    saddle
  • package csv
    Definition Classes
    saddle
  • package groupby
    Definition Classes
    saddle
  • package index
    Definition Classes
    saddle
  • package locator
    Definition Classes
    saddle
  • package mat
    Definition Classes
    saddle
  • MatCols
  • MatDefault
  • MatMath
  • package ops

    Provides type aliases for a few basic operations

    Provides type aliases for a few basic operations

    Definition Classes
    saddle
  • package scalar
    Definition Classes
    saddle
  • package util

    Additional utilities that need a home

    Additional utilities that need a home

    Definition Classes
    saddle
  • package vec

    Factory methods to generate Vec instances

    Factory methods to generate Vec instances

    Definition Classes
    saddle

package mat

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. mat
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

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

    A Mat instance containing elements of type Long

Value Members

  1. 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

  2. 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

  3. def ones(rows: Int, cols: Int): Mat[Double]
  4. 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

  5. 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

  6. 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

  7. 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

  8. 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

  9. 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

  10. 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

  11. 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

  12. def repeat[T](v: Array[T], n: Int, asRows: Boolean = false)(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

  13. def zeros(rows: Int, cols: Int): Mat[Double]
  14. object MatCols
  15. object MatMath

    Matrix mathematical helper routines.

Inherited from AnyRef

Inherited from Any

Ungrouped