org.saddle.mat

MatAny

class MatAny[T] extends Mat[T]

A Mat instance containing elements of type Any

Linear Supertypes
Mat[T], Serializable, Serializable, NumericOps[Mat[T]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. MatAny
  2. Mat
  3. Serializable
  4. Serializable
  5. NumericOps
  6. AnyRef
  7. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MatAny(r: Int, c: Int, values: Array[T])(implicit arg0: ST[T])

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 %[B, That](other: B)(implicit op: BinOp[Mod, Mat[T], B, That]): That

    Integer modulus of division

    Integer modulus of division

    B

    type of the other operand

    That

    result type of operation

    other

    other operand instance (divisor)

    op

    implicit evidence for operation between this and other

    Definition Classes
    NumericOps
  5. def &[B, That](other: B)(implicit op: BinOp[BitAnd, Mat[T], B, That]): That

    Bit-wise AND

    Bit-wise AND

    B

    type of the other operand

    That

    result type of operation

    other

    other operand instance

    op

    implicit evidence for operation between this and other

    Definition Classes
    NumericOps
  6. def &&[B, That](other: B)(implicit op: BinOp[AndOp, Mat[T], B, That]): That

    Logical AND

    Logical AND

    B

    type of the other operand

    That

    result type of operation

    other

    other operand instance

    op

    implicit evidence for operation between this and other

    Definition Classes
    NumericOps
  7. def *[B, That](other: B)(implicit op: BinOp[Multiply, Mat[T], B, That]): That

    Multiplication

    Multiplication

    B

    type of the other operand

    That

    result type of operation

    other

    other operand instance

    op

    implicit evidence for operation between this and other

    Definition Classes
    NumericOps
  8. def **[B, That](other: B)(implicit op: BinOp[Power, Mat[T], B, That]): That

    Exponentiation

    Exponentiation

    B

    type of the other operand

    That

    result type of operation

    other

    other operand instance (exponent)

    op

    implicit evidence for operation between this and other

    Definition Classes
    NumericOps
  9. def +[B, That](other: B)(implicit op: BinOp[Add, Mat[T], B, That]): That

    Addition

    Addition

    B

    type of the other operand

    That

    result type of operation

    other

    other operand instance

    op

    implicit evidence for operation between this and other

    Definition Classes
    NumericOps
  10. def -[B, That](other: B)(implicit op: BinOp[Subtract, Mat[T], B, That]): That

    Subtraction

    Subtraction

    B

    type of the other operand

    That

    result type of operation

    other

    other operand instance

    op

    implicit evidence for operation between this and other

    Definition Classes
    NumericOps
  11. def /[B, That](other: B)(implicit op: BinOp[Divide, Mat[T], B, That]): That

    Division

    Division

    B

    type of the other operand

    That

    result type of operation

    other

    other operand instance (divisor)

    op

    implicit evidence for operation between this and other

    Definition Classes
    NumericOps
  12. def <[B, That](other: B)(implicit op: BinOp[LtOp, Mat[T], B, That]): That

    Less-than comparison operator

    Less-than comparison operator

    B

    type of the other operand

    That

    result type of operation

    other

    other operand instance

    op

    implicit evidence for operation between this and other

    Definition Classes
    NumericOps
  13. def <<[B, That](other: B)(implicit op: BinOp[BitShl, Mat[T], B, That]): That

    Bit-shift left

    Bit-shift left

    B

    type of the other operand

    That

    result type of operation

    other

    other operand instance

    op

    implicit evidence for operation between this and other

    Definition Classes
    NumericOps
  14. def <=[B, That](other: B)(implicit op: BinOp[LteOp, Mat[T], B, That]): That

    Less-than-or-equal-to comparison operator

    Less-than-or-equal-to comparison operator

    B

    type of the other operand

    That

    result type of operation

    other

    other operand instance

    op

    implicit evidence for operation between this and other

    Definition Classes
    NumericOps
  15. def <>[B, That](other: B)(implicit op: BinOp[NeqOp, Mat[T], B, That]): That

    Element-wise inequality operator

    Element-wise inequality operator

    B

    type of the other operand

    That

    result type of operation

    other

    other operand instance

    op

    implicit evidence for operation between this and other

    Definition Classes
    NumericOps
  16. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  18. def =?[B, That](other: B)(implicit op: BinOp[EqOp, Mat[T], B, That]): That

    Element-wise equality operator

    Element-wise equality operator

    B

    type of the other operand

    That

    result type of operation

    other

    other operand instance

    op

    implicit evidence for operation between this and other

    Definition Classes
    NumericOps
  19. def >[B, That](other: B)(implicit op: BinOp[GtOp, Mat[T], B, That]): That

    Greater-than comparison operator

    Greater-than comparison operator

    B

    type of the other operand

    That

    result type of operation

    other

    other operand instance

    op

    implicit evidence for operation between this and other

    Definition Classes
    NumericOps
  20. def >=[B, That](other: B)(implicit op: BinOp[GteOp, Mat[T], B, That]): That

    Greater-than-or-equal-to comparison operator

    Greater-than-or-equal-to comparison operator

    B

    type of the other operand

    That

    result type of operation

    other

    other operand instance

    op

    implicit evidence for operation between this and other

    Definition Classes
    NumericOps
  21. def >>[B, That](other: B)(implicit op: BinOp[BitShr, Mat[T], B, That]): That

    Bit-shift right (arithmetic)

    Bit-shift right (arithmetic)

    B

    type of the other operand

    That

    result type of operation

    other

    other operand instance

    op

    implicit evidence for operation between this and other

    Definition Classes
    NumericOps
  22. def >>>[B, That](other: B)(implicit op: BinOp[BitUShr, Mat[T], B, That]): That

    Bit-shift right (logical)

    Bit-shift right (logical)

    B

    type of the other operand

    That

    result type of operation

    other

    other operand instance

    op

    implicit evidence for operation between this and other

    Definition Classes
    NumericOps
  23. def T: Mat[T]

    Transpose of original matrix

    Transpose of original matrix

    Definition Classes
    Mat
  24. def ^[B, That](other: B)(implicit op: BinOp[BitXor, Mat[T], B, That]): That

    Bit-wise EXCLUSIVE OR

    Bit-wise EXCLUSIVE OR

    B

    type of the other operand

    That

    result type of operation

    other

    other operand instance

    op

    implicit evidence for operation between this and other

    Definition Classes
    NumericOps
  25. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  26. def at(r: Slice[Int], c: Slice[Int])(implicit st: ScalarTag[T]): Mat[T]

    Access a slice of the Mat by Slice parameters

    Access a slice of the Mat by Slice parameters

    r

    Slice to apply to rows

    c

    Slice to apply to cols

    Definition Classes
    Mat
  27. def at(r: Int, c: Array[Int])(implicit st: ScalarTag[T]): Vec[T]

    Access a slice of the Mat by integer offsets

    Access a slice of the Mat by integer offsets

    r

    Integer row offset

    c

    Array of col offsets

    Definition Classes
    Mat
  28. def at(r: Array[Int], c: Int)(implicit st: ScalarTag[T]): Vec[T]

    Access a slice of the Mat by integer offsets

    Access a slice of the Mat by integer offsets

    r

    Array of row offsets

    c

    Integer col offset

    Definition Classes
    Mat
  29. def at(r: Array[Int], c: Array[Int])(implicit st: ScalarTag[T]): Mat[T]

    Access a slice of the Mat by integer offsets

    Access a slice of the Mat by integer offsets

    r

    Array of row offsets

    c

    Array of col offsets

    Definition Classes
    Mat
  30. def at(r: Int, c: Int)(implicit st: ScalarTag[T]): Scalar[T]

    Return scalar value of Mat at at row/column

    Return scalar value of Mat at at row/column

    r

    row index

    c

    col index

    Definition Classes
    Mat
  31. def at(i: Int)(implicit st: ScalarTag[T]): Scalar[T]

    Return scalar value of matrix at offset from zero in row-major order

    Return scalar value of matrix at offset from zero in row-major order

    i

    index

    Definition Classes
    Mat
  32. lazy val cachedT: MatAny[T]

  33. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  34. def col(slice: Slice[Int]): Mat[T]

    Access mat columns specified by a slice

    Access mat columns specified by a slice

    slice

    a slice specifier

    Definition Classes
    Mat
  35. def col(locs: Array[Int])(implicit ev: ST[T]): Mat[T]

    Access Mat columns at a particular integer offsets

    Access Mat columns at a particular integer offsets

    locs

    an array of integer offsets

    Definition Classes
    Mat
  36. def col(locs: Int*)(implicit ev: ST[T]): Mat[T]

    Access Mat columns at a particular integer offsets

    Access Mat columns at a particular integer offsets

    locs

    a sequence of integer offsets

    Definition Classes
    Mat
  37. def col(c: Int)(implicit ev: ST[T]): Vec[T]

    Returns a specific column of the Mat as a Vec

    Returns a specific column of the Mat as a Vec

    c

    Column index

    Definition Classes
    Mat
  38. def cols(seq: IndexedSeq[Int])(implicit ev: ST[T]): IndexedSeq[Vec[T]]

    Returns columns of Mat as an indexed sequence of Vec instances

    Returns columns of Mat as an indexed sequence of Vec instances

    Definition Classes
    Mat
  39. def cols()(implicit ev: ST[T]): IndexedSeq[Vec[T]]

    Returns columns of Mat as an indexed sequence of Vec instances

    Returns columns of Mat as an indexed sequence of Vec instances

    Definition Classes
    Mat
  40. def colsWithNA(implicit ev: ST[T]): Set[Int]

    Yields column indices where column has some NA value

    Yields column indices where column has some NA value

    Definition Classes
    Mat
  41. def contents: Array[T]

    Returns (a copy of) the contents of matrix as a single array in row-major order

    Returns (a copy of) the contents of matrix as a single array in row-major order

    Definition Classes
    Mat
  42. def dot[B, That](other: B)(implicit op: BinOp[InnerProd, Mat[T], B, That]): That

    Dot (inner) product

    Dot (inner) product

    B

    type of the other operand

    That

    result type of operation

    other

    other operand instance

    op

    implicit evidence for operation between this and other

    Definition Classes
    NumericOps
  43. def dropColsWithNA(implicit ev: ST[T]): Mat[T]

    Yields a matrix without those cols that have NA

    Yields a matrix without those cols that have NA

    Definition Classes
    Mat
  44. def dropRowsWithNA(implicit ev: ST[T]): Mat[T]

    Yields a matrix without those rows that have NA

    Yields a matrix without those rows that have NA

    Definition Classes
    Mat
  45. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  46. def equals(o: Any): Boolean

    Row-by-row equality check of all values.

    Row-by-row equality check of all values.

    Definition Classes
    MatAnyMat → AnyRef → Any
  47. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  49. def hashCode(): Int

    Default hashcode is simple rolling prime multiplication of sums of hashcodes for all values.

    Default hashcode is simple rolling prime multiplication of sums of hashcodes for all values.

    Definition Classes
    Mat → AnyRef → Any
  50. def isEmpty: Boolean

    Returns true if the matrix is empty

    Returns true if the matrix is empty

    Definition Classes
    Mat
  51. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  52. def isSquare: Boolean

    Returns true if rows == cols

    Returns true if rows == cols

    Definition Classes
    Mat
  53. def length: Int

    Returns total number of entries in the matrix

    Returns total number of entries in the matrix

    Definition Classes
    Mat
  54. def map[B](f: (T) ⇒ B)(implicit arg0: ST[B]): Mat[B]

    Maps a function over each element in the matrix

    Maps a function over each element in the matrix

    Definition Classes
    MatAnyMat
  55. def mult[B](m: Mat[B])(implicit evA: NUM[T], evB: NUM[B]): Mat[Double]

    Multiplies this matrix against another

    Multiplies this matrix against another

    Definition Classes
    Mat
  56. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  57. final def notify(): Unit

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

    Definition Classes
    AnyRef
  59. def numCols: Int

    Returns number of columns in the matrix shape

    Returns number of columns in the matrix shape

    Definition Classes
    MatAnyMat
  60. def numRows: Int

    Returns number of rows in the matrix shape

    Returns number of rows in the matrix shape

    Definition Classes
    MatAnyMat
  61. def outer[B, That](other: B)(implicit op: BinOp[OuterProd, Mat[T], B, That]): That

    Outer product

    Outer product

    B

    type of the other operand

    That

    result type of operation

    other

    other operand instance

    op

    implicit evidence for operation between this and other

    Definition Classes
    NumericOps
  62. def print(nrows: Int = 8, ncols: Int = 8, stream: OutputStream = System.out): Unit

    Pretty-printer for Mat, which simply outputs the result of stringify.

    Pretty-printer for Mat, which simply outputs the result of stringify.

    nrows

    Number of elements to display

    Definition Classes
    Mat
  63. def raw(r: Int, c: Int): T

    Return unboxed value of matrix at row/column

    Return unboxed value of matrix at row/column

    r

    row index

    c

    col index

    Definition Classes
    Mat
  64. def raw(i: Int): T

    Return unboxed value of matrix at an offset from zero in row-major order

    Return unboxed value of matrix at an offset from zero in row-major order

    i

    index

    Definition Classes
    Mat
  65. def repr: MatAny[T]

  66. def reshape(r: Int, c: Int): Mat[T]

    Changes the shape of matrix without changing the underlying data

    Changes the shape of matrix without changing the underlying data

    Definition Classes
    MatAnyMat
  67. def roundTo(sig: Int = 2)(implicit ev: NUM[T]): Mat[Double]

    Rounds elements in the matrix (which must be numeric) to a significance level

    Rounds elements in the matrix (which must be numeric) to a significance level

    sig

    Significance level to round to (e.g., 2 decimal places)

    Definition Classes
    Mat
  68. def row(slice: Slice[Int]): Mat[T]

    Access Mat rows specified by a slice

    Access Mat rows specified by a slice

    slice

    a slice specifier

    Definition Classes
    Mat
  69. def row(locs: Array[Int])(implicit ev: ST[T]): Mat[T]

    Access Mat rows at a particular integer offsets

    Access Mat rows at a particular integer offsets

    locs

    an array of integer offsets

    Definition Classes
    Mat
  70. def row(locs: Int*)(implicit ev: ST[T]): Mat[T]

    Access Mat rows at a particular integer offsets

    Access Mat rows at a particular integer offsets

    locs

    a sequence of integer offsets

    Definition Classes
    Mat
  71. def row(r: Int)(implicit ev: ST[T]): Vec[T]

    Returns a specific row of the Mat as a Vec

    Returns a specific row of the Mat as a Vec

    r

    Row index

    Definition Classes
    Mat
  72. def rows(seq: IndexedSeq[Int])(implicit ev: ST[T]): IndexedSeq[Vec[T]]

    Returns rows of matrix as an indexed sequence of Vec instances

    Returns rows of matrix as an indexed sequence of Vec instances

    Definition Classes
    Mat
  73. def rows()(implicit ev: ST[T]): IndexedSeq[Vec[T]]

    Returns rows of matrix as an indexed sequence of Vec instances

    Returns rows of matrix as an indexed sequence of Vec instances

    Definition Classes
    Mat
  74. def rowsWithNA(implicit ev: ST[T]): Set[Int]

    Yields row indices where row has some NA value

    Yields row indices where row has some NA value

    Definition Classes
    Mat
  75. lazy val scalarTag: ST[T]

    Definition Classes
    MatAnyMat
  76. def stringify(nrows: Int = 8, ncols: Int = 8): String

    Creates a string representation of Mat

    Creates a string representation of Mat

    nrows

    Max number of rows to include

    ncols

    Max number of cols to include

    Definition Classes
    Mat
  77. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  78. def takeCols(locs: Int*): Mat[T]

    Create Mat comprised of same values in specified columns

    Create Mat comprised of same values in specified columns

    Definition Classes
    Mat
  79. def takeCols(locs: Array[Int]): Mat[T]

    Create Mat comprised of same values in specified columns

    Create Mat comprised of same values in specified columns

    Definition Classes
    Mat
  80. def takeRows(locs: Array[Int]): Mat[T]

    Create Mat comprised of same values in specified rows

    Create Mat comprised of same values in specified rows

    Definition Classes
    MatAnyMat
  81. def takeRows(locs: Int*): Mat[T]

    Create Mat comprised of same values in specified rows

    Create Mat comprised of same values in specified rows

    Definition Classes
    Mat
  82. def toString(): String

    Definition Classes
    Mat → AnyRef → Any
  83. def toVec: Vec[T]

    Concatenate all rows into a single row-wise Vec instance

    Concatenate all rows into a single row-wise Vec instance

    Definition Classes
    MatAnyMat
  84. def transpose: MatAny[T]

    Transpose of original matrix

    Transpose of original matrix

    Definition Classes
    MatAnyMat
  85. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  88. def withoutCols(locs: Int*): Mat[T]

    Create Mat comprised of same values without the specified columns

    Create Mat comprised of same values without the specified columns

    locs

    Col locations to exclude

    Definition Classes
    Mat
  89. def withoutCols(locs: Array[Int]): Mat[T]

    Create Mat comprised of same values without the specified columns

    Create Mat comprised of same values without the specified columns

    locs

    Col locations to exclude

    Definition Classes
    Mat
  90. def withoutRows(locs: Array[Int]): Mat[T]

    Create Mat comprised of same values without the specified rows

    Create Mat comprised of same values without the specified rows

    locs

    Row locations to exclude

    Definition Classes
    MatAnyMat
  91. def withoutRows(locs: Int*): Mat[T]

    Create Mat comprised of same values without the specified rows

    Create Mat comprised of same values without the specified rows

    locs

    Row locations to exclude

    Definition Classes
    Mat
  92. def xor[B, That](other: B)(implicit op: BinOp[XorOp, Mat[T], B, That]): That

    Logical EXCLUSIVE OR

    Logical EXCLUSIVE OR

    B

    type of the other operand

    That

    result type of operation

    other

    other operand instance

    op

    implicit evidence for operation between this and other

    Definition Classes
    NumericOps
  93. def |[B, That](other: B)(implicit op: BinOp[BitOr, Mat[T], B, That]): That

    Bit-wise OR

    Bit-wise OR

    B

    type of the other operand

    That

    result type of operation

    other

    other operand instance

    op

    implicit evidence for operation between this and other

    Definition Classes
    NumericOps
  94. def ||[B, That](other: B)(implicit op: BinOp[OrOp, Mat[T], B, That]): That

    Logical OR

    Logical OR

    B

    type of the other operand

    That

    result type of operation

    other

    other operand instance

    op

    implicit evidence for operation between this and other

    Definition Classes
    NumericOps

Inherited from Mat[T]

Inherited from Serializable

Inherited from Serializable

Inherited from NumericOps[Mat[T]]

Inherited from AnyRef

Inherited from Any