org.saddle.mat

MatLong

class MatLong extends Mat[Long]

A Mat instance containing elements of type Long

Linear Supertypes
Mat[Long], NumericOps[Mat[Long]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MatLong
  2. Mat
  3. NumericOps
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MatLong(r: Int, c: Int, values: Array[Long])

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[Long], 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[Long], 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[Long], 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[Long], 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[Long], 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[Long], 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[Long], 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[Long], 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[Long], 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[Long], 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[Long], 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[Long], 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[Long], 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[Long], 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[Long], 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[Long], 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[Long], 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[Long]

    Transpose of original matrix

    Transpose of original matrix

    Definition Classes
    Mat
  24. def ^[B, That](other: B)(implicit op: BinOp[BitXor, Mat[Long], 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: Int, c: Int): Scalar[Long]

    Return scalar value of matrix at at row/column

    Return scalar value of matrix at at row/column

    r

    row index

    c

    col index

    Definition Classes
    Mat
  27. def at(i: Int): Scalar[Long]

    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
  28. lazy val cachedT: MatLong

  29. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  30. def col(c: Int)(implicit ev: ST[Long]): Vec[Long]

    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
  31. def cols()(implicit ev: ST[Long]): IndexedSeq[Vec[Long]]

    Returns columns of matrix as an indexed sequence of Vec instances

    Returns columns of matrix as an indexed sequence of Vec instances

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

    Yields column indices where column has some NA value

    Yields column indices where column has some NA value

    Definition Classes
    Mat
  33. def contents: Array[Long]

    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
  34. def copy: Mat[Long]

    Copy of original matrix

    Copy of original matrix

    Definition Classes
    MatLongMat
  35. def dot[B, That](other: B)(implicit op: BinOp[InnerProd, Mat[Long], 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
  36. def dropColsWithNA(implicit ev: ST[Long]): Mat[Long]

    Yields a matrix without those cols that have NA

    Yields a matrix without those cols that have NA

    Definition Classes
    Mat
  37. def dropRowsWithNA(implicit ev: ST[Long]): Mat[Long]

    Yields a matrix without those rows that have NA

    Yields a matrix without those rows that have NA

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

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

    Row-by-row equality check of all values.

    Row-by-row equality check of all values.

    Definition Classes
    MatLongMat → AnyRef → Any
  40. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  42. 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
  43. def isEmpty: Boolean

    Returns true if the matrix is empty

    Returns true if the matrix is empty

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

    Definition Classes
    Any
  45. def isSquare: Boolean

    Returns true if rows == cols

    Returns true if rows == cols

    Definition Classes
    Mat
  46. def length: Int

    Returns total number of entries in the matrix

    Returns total number of entries in the matrix

    Definition Classes
    Mat
  47. def map[B](f: (Long) ⇒ 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
    MatLongMat
  48. def mult[B](m: Mat[B])(implicit evA: NUM[Long], evB: NUM[B]): Mat[Double]

    Multiplies this matrix against another

    Multiplies this matrix against another

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

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

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

    Definition Classes
    AnyRef
  52. def numCols: Int

    Returns number of columns in the matrix shape

    Returns number of columns in the matrix shape

    Definition Classes
    MatLongMat
  53. def numRows: Int

    Returns number of rows in the matrix shape

    Returns number of rows in the matrix shape

    Definition Classes
    MatLongMat
  54. def outer[B, That](other: B)(implicit op: BinOp[OuterProd, Mat[Long], 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
  55. 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
  56. def raw(r: Int, c: Int): Long

    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
  57. def raw(i: Int): Long

    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
  58. def repr: MatLong

  59. def reshape(r: Int, c: Int): Mat[Long]

    Changes the shape of matrix without changing the underlying data

    Changes the shape of matrix without changing the underlying data

    Definition Classes
    MatLongMat
  60. def roundTo(sig: Int = 2)(implicit ev: NUM[Long]): 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
  61. def row(r: Int)(implicit ev: ST[Long]): Vec[Long]

    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
  62. def rows()(implicit ev: ST[Long]): IndexedSeq[Vec[Long]]

    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
  63. def rowsWithNA(implicit ev: ST[Long]): Set[Int]

    Yields row indices where row has some NA value

    Yields row indices where row has some NA value

    Definition Classes
    Mat
  64. def scalarTag: ScalarTagLong.type

    Definition Classes
    MatLongMat
  65. 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
  66. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  67. def takeCols(locs: Array[Int]): Mat[Long]

    Create Mat comprised of same values in specified columns

    Create Mat comprised of same values in specified columns

    Definition Classes
    Mat
  68. def takeRows(locs: Array[Int]): Mat[Long]

    Create Mat comprised of same values in specified rows

    Create Mat comprised of same values in specified rows

    Definition Classes
    MatLongMat
  69. def toString(): String

    Definition Classes
    Mat → AnyRef → Any
  70. def toVec: VecLong

    Concatenate all rows into a single row-wise Vec instance

    Concatenate all rows into a single row-wise Vec instance

    Definition Classes
    MatLongMat
  71. def transpose: MatLong

    Transpose of original matrix

    Transpose of original matrix

    Definition Classes
    MatLongMat
  72. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  75. def withoutCols(locs: Array[Int]): Mat[Long]

    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
  76. def withoutRows(locs: Array[Int]): Mat[Long]

    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
    MatLongMat
  77. def xor[B, That](other: B)(implicit op: BinOp[XorOp, Mat[Long], 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
  78. def |[B, That](other: B)(implicit op: BinOp[BitOr, Mat[Long], 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
  79. def ||[B, That](other: B)(implicit op: BinOp[OrOp, Mat[Long], 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[Long]

Inherited from NumericOps[Mat[Long]]

Inherited from AnyRef

Inherited from Any

Ungrouped