Trait

de.h2b.scala.lib.math.linalg

VectorLike

Related Doc: package linalg

Permalink

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

Implementation trait for vectors of type Vector[E}.

Since

2.0.0

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. VectorLike
  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
    VectorLike → 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[VectorLike.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[VectorLike.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 canEqual(that: Any): Boolean

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    IterableLike
  46. def hasDefiniteSize: Boolean

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

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

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

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

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

    Permalink
    Definition Classes
    TraversableLike
  52. def isEmpty: Boolean

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

    Permalink
    Definition Classes
    Any
  54. final def isTraversableAgain: Boolean

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  66. def nonEmpty: Boolean

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  84. 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.

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

  86. def size: Int

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  95. def tail: V

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

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

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

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

    Permalink
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  100. def thisCollection: Vector[E]

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

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

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

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  104. def toCollection(repr: V): Vector[E]

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  116. def unary_+(): V

    Permalink

    Returns identity.

    Returns identity. Can also be used to copy this.

    returns

    +this

  117. def unary_-(): V

    Permalink

    Returns negative complement of this.

    Returns negative complement of this.

    returns

    -this

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  123. 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

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

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

    Permalink
    Definition Classes
    IterableLike → GenIterableLike
  126. 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
  127. 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