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 binary

    Binary serialization for Frame[String,String,T] or Mat[T] with primitive T

    Binary serialization for Frame[String,String,T] or Mat[T] with primitive T

    The layout of binary format is as follows:

    • The first 6 bytes are "SADDLE"
    • The next unsigned byte is the major version
    • The next unsigned byte is the minor version
    • The next 4 bytes form a little endian integer as HEADER_LENGTH
    • The next HEADER_LENGTH bytes form an UTF-8 string as the header.
    • The header is a valid JSON object with the following fields:
      • v: numeric positive integer is the version of the header structure
      • colix : a JSON array of strings, it is the column index of the frame
      • rowix : a JSON array of strings, it is the row index of the frame
      • numrows: numeric positive integer, number of rows
      • numcols: numeric positive integer, number of cols
      • Either one of rowix or numrows may be missing
      • Either one of colix or numcols may be missing
      • rowmajor : a boolean, indicating whether the data is stored in row-major or col-major order
      • datatype : string, either "double", "long", "int", "float", "byte"
    • The header is padded with spaces (0x20) such that HEADER_LENGTH+12 is divisible by 16. The count of spaces are included in HEADER_LENGTH.
    • The next width * numRows * numCols bytes form a little endian primitive array in row-major or col-major order. numRows and numCols are determined from the rowix/numrows and colix/numcols header fields. width is determined from the datatype field (8 for double and long, 4 for int and float, 1 for byte)
    Definition Classes
    saddle
  • package csv
    Definition Classes
    saddle
  • package groupby
    Definition Classes
    saddle
  • package index
    Definition Classes
    saddle
  • package io
    Definition Classes
    saddle
  • package linalg
    Definition Classes
    saddle
  • package macros
    Definition Classes
    saddle
  • package mat
    Definition Classes
    saddle
  • package npy
    Definition Classes
    saddle
  • 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 spire
    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
  • ArrToVec
  • Buffer
  • FillBackward
  • FillForward
  • FillMethod
  • Frame
  • Index
  • Mat
  • Numeric
  • OptionToScalar
  • PctMethod
  • PrimitiveToScalar
  • RankTie
  • SeqToFrame
  • SeqToFrame2
  • SeqToIndex
  • SeqToMat
  • SeqToSeries
  • SeqToVec
  • Series
  • Vec
  • VecDoubleOps
  • doubleIsNumeric
  • floatIsNumeric
  • intIsNumeric
  • longIsNumeric
  • order

trait Vec[T] extends NumericOps[Vec[T]]

Vec is an immutable container for 1D homogeneous data (a "vector"). It is backed by an array and indexed from 0 to length - 1.

Several element access methods are provided.

The apply() method returns a slice of the original vector:

val v = Vec(1,2,3,4)
v(0) == Vec(1)
v(1, 2) == Vec(2,3)

The at method returns an instance of a org.saddle.scalar.Scalar, which behaves much like an Option in that it can be either an instance of org.saddle.scalar.NA or a org.saddle.scalar.Value case class:

Vec[Int](1,2,3,na).at(0) == Scalar(1)
Vec[Int](1,2,3,na).at(3) == NA

The method raw accesses the underlying value directly.

Vec(1d,2,3).raw(0) == 1d

Vec may be used in arithmetic expressions which operate on two Vecs or on a Vec and a scalar value. A few examples:

Vec(1,2,3,4) + Vec(2,3,4,5) == Vec(3,5,7,9)
Vec(1,2,3,4) * 2 == Vec(2,4,6,8)

Note, Vec is implicitly convertible to an array for convenience; this could be abused to mutate the contents of the Vec. Try to avoid this!

T

Type of elements within the Vec

Linear Supertypes
NumericOps[Vec[T]], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Vec
  2. NumericOps
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def apply(loc: Int): T

    Access an unboxed element of a Vec[A] at a single location Same as raw

    Access an unboxed element of a Vec[A] at a single location Same as raw

    loc

    offset into Vec

  2. abstract def argmax(implicit na: NUM[T], st: ST[T], ord: ORD[T]): Int

    Integer offset of the minimum element of the Vec, if one exists, or else -1

  3. abstract def argmin(implicit na: NUM[T], st: ST[T], ord: ORD[T]): Int

    Integer offset of the minimum element of the Vec, if one exists, or else -1

  4. abstract def at(loc: Int): Scalar[T]

    Access a boxed element of a Vec[A] at a single location

    Access a boxed element of a Vec[A] at a single location

    loc

    offset into Vec

  5. abstract def concat(v: Vec[T]): Vec[T]

    Concatenate two Vec instances together, where there exists some way to join the type of elements.

    Concatenate two Vec instances together, where there exists some way to join the type of elements. For instance, Vec[Double] concat Vec[Int] will promote Int to Double as a result of the implicit existence of an instance of Promoter[Double, Int, Double]

    v

    Vec[B] to concat

  6. abstract def contents: Array[T]

    Return copy of backing array

  7. abstract def copy: Vec[T]

    Returns a Vec whose backing array has been copied

  8. abstract def count: Int
  9. abstract def countif(test: (T) => Boolean): Int
  10. abstract def dropLeft(i: Int): Vec[T]

    Returns a Vec with the first i elements removed

  11. abstract def dropNA: Vec[T]

    Drop the elements of the Vec which are NA

  12. abstract def dropRight(i: Int): Vec[T]

    Returns a Vec with the last i elements removed

  13. abstract def exists(pred: (T) => Boolean): Boolean

    Return true if there exists some element of the Vec which satisfies the predicate function

    Return true if there exists some element of the Vec which satisfies the predicate function

    pred

    Predicate function from A => Boolean

  14. abstract def fillBackward(limit: Int = 0): Vec[T]

    Fill NA values by propagating defined values backward.

    Fill NA values by propagating defined values backward.

    limit

    If > 0, propagate over a maximum of limit consecutive NA values

  15. abstract def fillForward(limit: Int = 0): Vec[T]

    Fill NA values by propagating defined values forward.

    Fill NA values by propagating defined values forward.

    limit

    If > 0, propagate over a maximum of limit consecutive NA values

  16. abstract def fillNA(method: FillMethod, limit: Int = 0): Vec[T]

    Fill NAs by propagating existent values.

    Fill NAs by propagating existent values.

    limit

    If > 0, fill a maximum of limit consecutive NA values

  17. abstract def fillNA(f: (Int) => T): Vec[T]

    Fills NA values in vector with result of a function which acts on the index of the particular NA value found

    Fills NA values in vector with result of a function which acts on the index of the particular NA value found

    f

    A function from Int => A; yields value for NA value at ith position

  18. abstract def filter(pred: (T) => Boolean): Vec[T]

    Return Vec whose elements satisfy a predicate function

    Return Vec whose elements satisfy a predicate function

    pred

    Predicate function from A => Boolean

  19. abstract def filterAt(pred: (Int) => Boolean): Vec[T]

    Return vec whose offets satisfy a predicate function

    Return vec whose offets satisfy a predicate function

    pred

    Predicate function from Int => Boolean

  20. abstract def filterFoldLeft[B](pred: (T) => Boolean)(init: B)(f: (B, T) => B)(implicit arg0: ST[B]): B

    Filtered left fold over the elements of the Vec, as in scala collections library

  21. abstract def filterScanLeft[B](pred: (T) => Boolean)(init: B)(f: (B, T) => B)(implicit arg0: ST[B]): Vec[B]

    Filtered left scan over elements of the Vec, as in scala collections library

  22. abstract def find(pred: (T) => Boolean): Vec[Int]

    Return Vec of integer locations (offsets) which satisfy some predicate

    Return Vec of integer locations (offsets) which satisfy some predicate

    pred

    Predicate function from A => Boolean

  23. abstract def findOne(pred: (T) => Boolean): Int

    Return first integer location which satisfies some predicate, or -1 if there is none

    Return first integer location which satisfies some predicate, or -1 if there is none

    pred

    Predicate function from A => Boolean

  24. abstract def first: Scalar[T]

    Access the first element of a Vec[A], or NA if length is zero

  25. abstract def flatMap[B](f: (T) => Vec[B])(implicit arg0: ST[B]): Vec[B]

    Maps a function over elements of the Vec and flattens the result.

    Maps a function over elements of the Vec and flattens the result.

    NAs are ignored and f is never called on a NA

  26. abstract def foldLeft[B](init: B)(f: (B, T) => B)(implicit arg0: ST[B]): B

    Left fold over the elements of the Vec, as in scala collections library

  27. abstract def foldLeftWhile[B](init: B)(f: (B, T) => B)(cond: (B, T) => Boolean)(implicit arg0: ST[B]): B

    Left fold that folds only while the test condition holds true.

    Left fold that folds only while the test condition holds true. As soon as the condition function yields false, the fold returns.

    cond

    Function whose signature is the same as the fold function, except that it evaluates to Boolean

  28. abstract def forall(pred: (T) => Boolean)(op: (T) => Unit): Unit

    Execute a (side-effecting) operation on each (non-NA) element in vec which satisfies some predicate.

    Execute a (side-effecting) operation on each (non-NA) element in vec which satisfies some predicate.

    pred

    Function A => Boolean

    op

    Side-effecting function

  29. abstract def foreach(op: (T) => Unit): Unit

    Execute a (side-effecting) operation on each (non-NA) element in the vec

    Execute a (side-effecting) operation on each (non-NA) element in the vec

    op

    operation to execute

  30. abstract def hasNA: Boolean

    Return true if there is an NA value in the Vec

  31. abstract def head(n: Int): Vec[T]

    Return first n elements

    Return first n elements

    n

    Number of elements to access

  32. abstract def isEmpty: Boolean

    True if and only if number of elements is zero

  33. abstract def last: Scalar[T]

    Access the last element of a Vec[A], or NA if length is zero

  34. abstract def length: Int

    The number of elements in the container F

  35. abstract def map[B](f: (T) => B)(implicit arg0: ST[B]): Vec[B]

    Map a function over the elements of the Vec, as in scala collections library

  36. abstract def mask(f: (T) => Boolean): Vec[T]

    Returns Vec whose locations are NA where the result of the provided function evaluates to true

    Returns Vec whose locations are NA where the result of the provided function evaluates to true

    f

    A function taking an element and returning a Boolean

  37. abstract def mask(m: Vec[Boolean]): Vec[T]

    Returns Vec whose locations corresponding to true entries in the boolean input mask vector are set to NA

    Returns Vec whose locations corresponding to true entries in the boolean input mask vector are set to NA

    m

    Mask vector of Vec[Boolean]

  38. abstract def max(implicit na: NUM[T], st: ST[T]): Scalar[T]
  39. abstract def mean(implicit na: NUM[T]): Double

    Return the mean of the values in the Vec, ignoring NA

  40. abstract def median(implicit na: NUM[T]): Double

    Return the median of the values in the Vec, ignoring NA

  41. abstract def min(implicit na: NUM[T], st: ST[T]): Scalar[T]
  42. abstract def needsCopy: Boolean

    Set to true when the vec is shifted over the backing array false iff the backing array is a contiguous sequence of the elements of this Vec false iff 0 until length map (raw) == the backing array

  43. abstract def partition(pred: Vec[Boolean]): (Vec[T], Vec[T])

    Return Vec whose elements are selected via negating a Vec of booleans (where that Vec holds the value true)

    Return Vec whose elements are selected via negating a Vec of booleans (where that Vec holds the value true)

    pred

    Predicate vector: Vec[Boolean]

  44. abstract def percentile(tile: Double, method: PctMethod = PctMethod.NIST)(implicit na: NUM[T]): Double

    Return the percentile of the values at a particular threshold, ignoring NA

    Return the percentile of the values at a particular threshold, ignoring NA

    tile

    The percentile in [0, 100] at which to compute the threshold

    method

    The percentile method; one of org.saddle.PctMethod

  45. abstract def print(len: Int, stream: OutputStream): Unit

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

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

    len

    Number of elements to display

  46. abstract def prod(implicit na: NUM[T], st: ST[T]): T

    Product of all the values in the Vec, ignoring NA values

  47. abstract def rank(tie: RankTie = RankTie.Avg, ascending: Boolean = true)(implicit na: NUM[T]): Vec[Double]

    Return a Vec of ranks corresponding to a Vec of numeric values.

    Return a Vec of ranks corresponding to a Vec of numeric values.

    tie

    Method with which to break ties; a org.saddle.RankTie

    ascending

    Boolean, default true, whether to give lower values larger rank

  48. abstract def raw(loc: Int): T

    Access an unboxed element of a Vec[A] at a single location Same as apply

    Access an unboxed element of a Vec[A] at a single location Same as apply

    loc

    offset into Vec

  49. abstract def reshape(rows: Int, cols: Int): Mat[T]

    Reshapes the Vec into a Mat

    Reshapes the Vec into a Mat

    May not copy. The new Mat instance may share data with this Vec.

  50. abstract def reversed: Vec[T]

    Yield a Vec whose elements have been reversed from their original order

  51. abstract def rolling[B](winSz: Int, f: (Vec[T]) => B)(implicit arg0: ST[B]): Vec[B]

    Produce a Vec whose entries are the result of executing a function on a sliding window of the data.

    Produce a Vec whose entries are the result of executing a function on a sliding window of the data.

    B

    Result type of function

    winSz

    Window size

    f

    Function Vec[A] => B to operate on sliding window

  52. abstract def roundTo(sig: Int = 2)(implicit ev: NUM[T]): Vec[Double]

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

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

    sig

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

  53. abstract def scalarTag: ScalarTag[T]

    A ScalarTag in the type of the elements of the Vec

  54. abstract def scanLeft[B](init: B)(f: (B, T) => B)(implicit arg0: ST[B]): Vec[B]

    Left scan over the elements of the Vec, as in scala collections library

  55. abstract def shift(n: Int): Vec[T]

    Creates a view into original Vec, but shifted so that n values at the beginning or end of the Vec are NA's.

    Creates a view into original Vec, but shifted so that n values at the beginning or end of the Vec are NA's. Data is not copied.

    n

    Number of offsets to shift

  56. abstract def slice(from: Int, until: Int, stride: Int = 1): Vec[T]

    Creates a view into original vector from an offset up to, but excluding, another offset.

    Creates a view into original vector from an offset up to, but excluding, another offset. Data is not copied.

    from

    Beginning offset

    until

    One past ending offset

    stride

    Increment within slice

  57. abstract def sliceBy(from: Int, to: Int, stride: Int = 1): Vec[T]

    Creates a view into original vector from an offset up to, and including, another offset.

    Creates a view into original vector from an offset up to, and including, another offset. Data is not copied.

    from

    Beginning offset

    to

    Ending offset

    stride

    Increment within slice

  58. abstract def sorted(implicit ev: ORD[T], st: ST[T]): Vec[T]

    Yield a Vec whose elements have been sorted (in ascending order)

    Yield a Vec whose elements have been sorted (in ascending order)

    ev

    evidence of Ordering[A]

  59. abstract def splitAt(i: Int): (Vec[T], Vec[T])

    Split Vec into two Vecs at position i

    Split Vec into two Vecs at position i

    i

    Position at which to split Vec

  60. abstract def stringify(len: Int): String

    Creates a string representation of Vec

    Creates a string representation of Vec

    len

    Max number of elements to include

  61. abstract def sum(implicit na: NUM[T], st: ST[T]): T
  62. abstract def tail(n: Int): Vec[T]

    Return last n elements

    Return last n elements

    n

    Number of elements to access

  63. abstract def take(rng: Slice[Int]): Vec[T]

    Slice a Vec at a bound of locations, e.g.

    Slice a Vec at a bound of locations, e.g.

    val v = Vec(1,2,3,4,5) v(1->3) == Vec(2,3,4)

    rng

    evaluates to IRange

  64. abstract def take(locs: Int*): Vec[T]
  65. abstract def take(locs: Array[Int]): Vec[T]

    Equivalent to slicing operation; e.g.

    Equivalent to slicing operation; e.g.

    val v = Vec(1,2,3)
    v.take(0,1) == v(0,1)
    locs

    Location of elements to take

  66. abstract def takeLeft(i: Int): Vec[T]

    Returns a Vec with the first i elements

  67. abstract def takeRight(i: Int): Vec[T]

    Returns a Vec with the last i elements

  68. abstract def toArray: Array[T]
  69. abstract def toSeq: IndexedSeq[T]

    Converts Vec to an indexed sequence (default implementation is immutable.Vector)

  70. abstract def unary_-(implicit num: NUM[T]): Vec[T]

    Additive inverse of Vec with numeric elements

  71. abstract def update(slice: Slice[Int], value: Vec[T]): Unit

    Updates (overwrites) a range in the Vec

    Updates (overwrites) a range in the Vec

    Mutates the underlying array

  72. abstract def update(slice: Slice[Int], value: T): Unit

    Updates (overwrites) a range in the Vec

    Updates (overwrites) a range in the Vec

    Mutates the underlying array

  73. abstract def update(offset: Int, value: T): Unit

    Updates (overwrites) a location in the Vec

    Updates (overwrites) a location in the Vec

    Mutates the underlying array

  74. abstract def updated(offsets: Array[Int], value: T): Vec[T]

    Returns a new Vec with the values at offset set to value

    Returns a new Vec with the values at offset set to value

    Copies before mutating. Ignores invalid offsets in the array

  75. abstract def updated(offset: Int, value: T): Vec[T]

    Returns a new Vec with the value at offset set to value

    Returns a new Vec with the value at offset set to value

    Copies before mutating.

  76. abstract def view(offsets1: Array[Int]): Vec[T]

    Creates a view into original vector at arbitrary indexes.

    Creates a view into original vector at arbitrary indexes. Data is not copied.

    offsets1

    indexes into the original array

  77. abstract def where(pred: Vec[Boolean]): Vec[T]

    Return Vec whose elements are selected via a Vec of booleans (where that Vec holds the value true)

    Return Vec whose elements are selected via a Vec of booleans (where that Vec holds the value true)

    pred

    Predicate vector: Vec[Boolean]

  78. abstract def whereNot(pred: Vec[Boolean]): Vec[T]

    Return Vec whose elements are selected via negating a Vec of booleans (where that Vec holds the value true)

    Return Vec whose elements are selected via negating a Vec of booleans (where that Vec holds the value true)

    pred

    Predicate vector: Vec[Boolean]

  79. abstract def without(locs: Array[Int]): Vec[T]

    The complement of the take operation; slice out elements NOT specified in list.

    The complement of the take operation; slice out elements NOT specified in list.

    locs

    Location of elements not to take

  80. abstract def zipMap[B, C](other: Vec[B])(f: (T, B) => C)(implicit arg0: ST[B], arg1: ST[C]): Vec[C]

    Zips Vec with another Vec and applies a function to the paired elements.

    Zips Vec with another Vec and applies a function to the paired elements. If either of the pair is NA, the result is forced to NA.

    B

    Parameter of other Vec

    C

    Result of function

    other

    Vec[B]

    f

    Function (A, B) => C

  81. abstract def zipMapIdx[C](f: (T, Int) => C)(implicit arg0: ST[C]): Vec[C]

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def %[B, That](other: B)(implicit op: BinOp[Mod, Vec[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
  4. def %=[B](other: B)(implicit op: BinOpInPlace[Mod, Vec[T], B]): Unit
    Definition Classes
    NumericOps
  5. def &[B, That](other: B)(implicit op: BinOp[BitAnd, Vec[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, Vec[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, Vec[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, Vec[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](other: B)(implicit op: BinOpInPlace[Power, Vec[T], B]): Unit
    Definition Classes
    NumericOps
  10. def *=[B](other: B)(implicit op: BinOpInPlace[Multiply, Vec[T], B]): Unit
    Definition Classes
    NumericOps
  11. def +[B, That](other: B)(implicit op: BinOp[Add, Vec[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
  12. def +=[B](other: B)(implicit op: BinOpInPlace[Add, Vec[T], B]): Unit
    Definition Classes
    NumericOps
  13. def -[B, That](other: B)(implicit op: BinOp[Subtract, Vec[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
  14. def -=[B](other: B)(implicit op: BinOpInPlace[Subtract, Vec[T], B]): Unit
    Definition Classes
    NumericOps
  15. def /[B, That](other: B)(implicit op: BinOp[Divide, Vec[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
  16. def /=[B](other: B)(implicit op: BinOpInPlace[Divide, Vec[T], B]): Unit
    Definition Classes
    NumericOps
  17. def <[B, That](other: B)(implicit op: BinOp[LtOp, Vec[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
  18. def <<[B, That](other: B)(implicit op: BinOp[BitShl, Vec[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
  19. def <=[B, That](other: B)(implicit op: BinOp[LteOp, Vec[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
  20. def <>[B, That](other: B)(implicit op: BinOp[NeqOp, Vec[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
  21. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  22. def =?[B, That](other: B)(implicit op: BinOp[EqOp, Vec[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
  23. def >[B, That](other: B)(implicit op: BinOp[GtOp, Vec[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
  24. def >=[B, That](other: B)(implicit op: BinOp[GteOp, Vec[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
  25. def >>[B, That](other: B)(implicit op: BinOp[BitShr, Vec[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
  26. def >>>[B, That](other: B)(implicit op: BinOp[BitUShr, Vec[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
  27. def ^[B, That](other: B)(implicit op: BinOp[BitXor, Vec[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
  28. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  29. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  30. def dot[B, That](other: B)(implicit op: BinOp[InnerProd, Vec[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
  31. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  32. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  33. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  34. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  35. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  36. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  37. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  38. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  39. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  40. def outer[B, That](other: B)(implicit op: BinOp[OuterProd, Vec[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
  41. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  42. def toString(): String
    Definition Classes
    AnyRef → Any
  43. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  44. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  45. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  46. def xor[B, That](other: B)(implicit op: BinOp[XorOp, Vec[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
  47. def |[B, That](other: B)(implicit op: BinOp[BitOr, Vec[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
  48. def ||[B, That](other: B)(implicit op: BinOp[OrOp, Vec[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 NumericOps[Vec[T]]

Inherited from AnyRef

Inherited from Any

Ungrouped