Trait

de.h2b.scala.lib.math.linalg

GenVectorLike

Related Doc: package linalg

Permalink

trait GenVectorLike[E, +V <: Vector[E]] extends IterableLike[E, V]

A template trait for vectors with operations suitable for all kinds of data storage. For performance reasons, some methods might be overriden by implementation traits in regard to specific storage engines.

Since

3.0.0

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GenVectorLike
  2. IterableLike
  3. GenIterableLike
  4. TraversableLike
  5. GenTraversableLike
  6. Parallelizable
  7. TraversableOnce
  8. GenTraversableOnce
  9. FilterMonadic
  10. HasNewBuilder
  11. Equals
  12. AnyRef
  13. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait ScalarOps extends AnyRef

    Permalink

    Scalar arithmetics to be provided by implementation.

    Scalar arithmetics to be provided by implementation.

    Attributes
    protected
  2. type Self = V

    Permalink
    Attributes
    protected[this]
    Definition Classes
    TraversableLike
  3. class WithFilter extends FilterMonadic[A, Repr]

    Permalink
    Definition Classes
    TraversableLike

Abstract Value Members

  1. implicit abstract val elemTag: ClassTag[E]

    Permalink
    Attributes
    protected
  2. abstract def iterator: Iterator[E]

    Permalink
    Definition Classes
    IterableLike → GenIterableLike
  3. abstract def newBuilder: VectorBuilder[E, V]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    GenVectorLike → TraversableLike → HasNewBuilder
  4. abstract val op: ScalarOps

    Permalink
    Attributes
    protected
  5. abstract def seq: TraversableOnce[E]

    Permalink
    Definition Classes
    Parallelizable

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def *(s: E): V

    Permalink

    Scales this vector by s.

    Scales this vector by s.

    returns

    this*s

  4. def +[That >: V <: Vector[E]](v: That)(implicit bf: VectorCanBuildFrom[GenVectorLike.this.type, E, That]): That

    Permalink

    Returns the sum of this and v.

    Returns the sum of this and v.

    v

    the other vector to be added

    returns

    this+v

  5. def ++[B >: E, That](that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[V, B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  6. def ++:[B >: E, That](that: Traversable[B])(implicit bf: CanBuildFrom[V, B, That]): That

    Permalink
    Definition Classes
    TraversableLike
  7. def ++:[B >: E, That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[V, B, That]): That

    Permalink
    Definition Classes
    TraversableLike
  8. def -[That >: V <: Vector[E]](v: That)(implicit bf: VectorCanBuildFrom[GenVectorLike.this.type, E, That]): That

    Permalink

    Returns the difference of this and v.

    Returns the difference of this and v.

    v

    the other vector to be subtracted

    returns

    this-v

  9. def /:[B](z: B)(op: (B, E) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  10. def :\[B](z: B)(op: (E, B) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  11. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def @@(at: Int): V

    Permalink

    at

    the lower index bound of the new vector

    returns

    a copy of this vector with the specified lower index bound

  13. def addString(b: StringBuilder): StringBuilder

    Permalink
    Definition Classes
    TraversableOnce
  14. def addString(b: StringBuilder, sep: String): StringBuilder

    Permalink
    Definition Classes
    TraversableOnce
  15. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

    Permalink
    Definition Classes
    TraversableOnce
  16. def aggregate[B](z: ⇒ B)(seqop: (B, E) ⇒ B, combop: (B, B) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  17. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  18. def binaryOp[That >: V <: Vector[E]](f: (E, E) ⇒ E, v: That)(implicit bf: VectorCanBuildFrom[GenVectorLike.this.type, E, That]): That

    Permalink
    Attributes
    protected
  19. def canEqual(that: Any): Boolean

    Permalink
    Definition Classes
    IterableLike → Equals
  20. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. def collect[B, That](pf: PartialFunction[E, B])(implicit bf: CanBuildFrom[V, B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  22. def collectFirst[B](pf: PartialFunction[E, B]): Option[B]

    Permalink
    Definition Classes
    TraversableOnce
  23. def copyToArray[B >: E](xs: Array[B], start: Int, len: Int): Unit

    Permalink
    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  24. def copyToArray[B >: E](xs: Array[B]): Unit

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  25. def copyToArray[B >: E](xs: Array[B], start: Int): Unit

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  26. def copyToBuffer[B >: E](dest: Buffer[B]): Unit

    Permalink
    Definition Classes
    TraversableOnce
  27. def count(p: (E) ⇒ Boolean): Int

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  28. def drop(n: Int): V

    Permalink
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  29. def dropRight(n: Int): V

    Permalink
    Definition Classes
    IterableLike
  30. def dropWhile(p: (E) ⇒ Boolean): V

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  31. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  32. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  33. def exists(p: (E) ⇒ Boolean): Boolean

    Permalink
    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  34. def filter(p: (E) ⇒ Boolean): V

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  35. def filterNot(p: (E) ⇒ Boolean): V

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  36. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  37. def find(p: (E) ⇒ Boolean): Option[E]

    Permalink
    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  38. def flatMap[B, That](f: (E) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[V, B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  39. def fold[A1 >: E](z: A1)(op: (A1, A1) ⇒ A1): A1

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  40. def foldLeft[B](z: B)(op: (B, E) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  41. def foldRight[B](z: B)(op: (E, B) ⇒ B): B

    Permalink
    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  42. def forall(p: (E) ⇒ Boolean): Boolean

    Permalink
    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  43. def foreach[U](f: (E) ⇒ U): Unit

    Permalink
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike → TraversableOnce → GenTraversableOnce → FilterMonadic
  44. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  45. def groupBy[K](f: (E) ⇒ K): Map[K, V]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  46. def grouped(size: Int): Iterator[V]

    Permalink
    Definition Classes
    IterableLike
  47. def hasDefiniteSize: Boolean

    Permalink
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  48. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  49. def head: E

    Permalink
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  50. def headOption: Option[E]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  51. def init: V

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  52. def inits: Iterator[V]

    Permalink
    Definition Classes
    TraversableLike
  53. def isEmpty: Boolean

    Permalink
    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  54. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  55. final def isTraversableAgain: Boolean

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike → GenTraversableOnce
  56. def last: E

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  57. def lastOption: Option[E]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  58. def map[B, That](f: (E) ⇒ B)(implicit bf: CanBuildFrom[V, B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  59. def max[B >: E](implicit cmp: Ordering[B]): E

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  60. def maxBy[B](f: (E) ⇒ B)(implicit cmp: Ordering[B]): E

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  61. def min[B >: E](implicit cmp: Ordering[B]): E

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  62. def minBy[B](f: (E) ⇒ B)(implicit cmp: Ordering[B]): E

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  63. def mkString: String

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  64. def mkString(sep: String): String

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  65. def mkString(start: String, sep: String, end: String): String

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  66. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  67. def nonEmpty: Boolean

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  68. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  69. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  70. def par: ParIterable[E]

    Permalink
    Definition Classes
    Parallelizable
  71. def parCombiner: Combiner[E, ParIterable[E]]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    TraversableLike → Parallelizable
  72. def partition(p: (E) ⇒ Boolean): (V, V)

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  73. def product[B >: E](implicit num: Numeric[B]): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  74. def reduce[A1 >: E](op: (A1, A1) ⇒ A1): A1

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  75. def reduceLeft[B >: E](op: (B, E) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce
  76. def reduceLeftOption[B >: E](op: (B, E) ⇒ B): Option[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  77. def reduceOption[A1 >: E](op: (A1, A1) ⇒ A1): Option[A1]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  78. def reduceRight[B >: E](op: (E, B) ⇒ B): B

    Permalink
    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  79. def reduceRightOption[B >: E](op: (E, B) ⇒ B): Option[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  80. def repr: V

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  81. def reversed: List[E]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    TraversableOnce
  82. def sameElements[B >: E](that: GenIterable[B]): Boolean

    Permalink
    Definition Classes
    IterableLike → GenIterableLike
  83. def scan[B >: E, That](z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[V, B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  84. def scanLeft[B, That](z: B)(op: (B, E) ⇒ B)(implicit bf: CanBuildFrom[V, B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  85. def scanRight[B, That](z: B)(op: (E, B) ⇒ B)(implicit bf: CanBuildFrom[V, B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) The behavior of scanRight has changed. The previous behavior can be reproduced with scanRight.reverse.

  86. def shorten: V

    Permalink

    returns

    this vector with a shortened index range stripped by leading and trailing zero elements (i.e., making concrete leading and trailing zeroes virtual)

    Since

    2.1.0

    Note

    May not have an effect depending on the storage engine.

  87. def size: Int

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  88. def slice(from: Int, until: Int): V

    Permalink
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  89. def sliding(size: Int, step: Int): Iterator[V]

    Permalink
    Definition Classes
    IterableLike
  90. def sliding(size: Int): Iterator[V]

    Permalink
    Definition Classes
    IterableLike
  91. def span(p: (E) ⇒ Boolean): (V, V)

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  92. def splitAt(n: Int): (V, V)

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  93. def stringPrefix: String

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  94. def sum[B >: E](implicit num: Numeric[B]): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  95. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  96. def tail: V

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  97. def tails: Iterator[V]

    Permalink
    Definition Classes
    TraversableLike
  98. def take(n: Int): V

    Permalink
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  99. def takeRight(n: Int): V

    Permalink
    Definition Classes
    IterableLike
  100. def takeWhile(p: (E) ⇒ Boolean): V

    Permalink
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  101. def thisCollection: V

    Permalink
    Attributes
    protected[this]
    Definition Classes
    GenVectorLike → IterableLike → TraversableLike
  102. def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, E, Col[E]]): Col[E]

    Permalink
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  103. def toArray[B >: E](implicit arg0: ClassTag[B]): Array[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  104. def toBuffer[B >: E]: Buffer[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  105. def toCollection(repr: V): V

    Permalink
    Attributes
    protected[this]
    Definition Classes
    GenVectorLike → IterableLike → TraversableLike
  106. def toIndexedSeq: IndexedSeq[E]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  107. def toIterable: Iterable[E]

    Permalink
    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  108. def toIterator: Iterator[E]

    Permalink
    Definition Classes
    IterableLike → TraversableLike → GenTraversableOnce
    Annotations
    @deprecatedOverriding( ... , "2.11.0" )
  109. def toList: List[E]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  110. def toMap[T, U](implicit ev: <:<[E, (T, U)]): Map[T, U]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  111. def toSeq: Seq[E]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  112. def toSet[B >: E]: Set[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  113. def toStream: Stream[E]

    Permalink
    Definition Classes
    IterableLike → TraversableLike → GenTraversableOnce
  114. def toString(): String

    Permalink
    Definition Classes
    TraversableLike → Any
  115. def toTraversable: Traversable[E]

    Permalink
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
    Annotations
    @deprecatedOverriding( ... , "2.11.0" )
  116. def toVector: scala.Vector[E]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  117. def unaryOp(f: (E) ⇒ E): V

    Permalink
    Attributes
    protected
  118. def unary_+(): V

    Permalink

    Returns identity.

    Returns identity. Can also be used to copy this.

    returns

    +this

  119. def unary_-(): V

    Permalink

    Returns negative complement of this.

    Returns negative complement of this.

    returns

    -this

  120. def view(from: Int, until: Int): IterableView[E, V]

    Permalink
    Definition Classes
    IterableLike → TraversableLike
  121. def view: IterableView[E, V]

    Permalink
    Definition Classes
    IterableLike → TraversableLike
  122. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  125. def widen(index: Index): V

    Permalink

    index

    the requested index range (the actual index range will be the union of this argument and the existing one)

    returns

    this vector with a widened index range extended by leading and trailing zero elements (i.e., adding concrete leading and trailing zeroes that were virtual before)

    Since

    2.1.0

    Note

    May not have an effect depending on the storage engine.

  126. def withFilter(p: (E) ⇒ Boolean): FilterMonadic[E, V]

    Permalink
    Definition Classes
    TraversableLike → FilterMonadic
  127. def zip[A1 >: E, B, That](that: GenIterable[B])(implicit bf: CanBuildFrom[V, (A1, B), That]): That

    Permalink
    Definition Classes
    IterableLike → GenIterableLike
  128. def zipAll[B, A1 >: E, That](that: GenIterable[B], thisElem: A1, thatElem: B)(implicit bf: CanBuildFrom[V, (A1, B), That]): That

    Permalink
    Definition Classes
    IterableLike → GenIterableLike
  129. def zipWithIndex[A1 >: E, That](implicit bf: CanBuildFrom[V, (A1, Int), That]): That

    Permalink
    Definition Classes
    IterableLike → GenIterableLike

Inherited from IterableLike[E, V]

Inherited from GenIterableLike[E, V]

Inherited from TraversableLike[E, V]

Inherited from GenTraversableLike[E, V]

Inherited from Parallelizable[E, ParIterable[E]]

Inherited from TraversableOnce[E]

Inherited from GenTraversableOnce[E]

Inherited from FilterMonadic[E, V]

Inherited from HasNewBuilder[E, V]

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped