breeze.util

MutableIndex

trait MutableIndex[T] extends Index[T]

An Index that contains an extra method: index that adds the given element (if necessary), returning its (possibly new) position in the index.

Linear Supertypes
Index[T], Serializable, Serializable, (T) ⇒ Int, Iterable[T], IterableLike[T, Iterable[T]], Equals, GenIterable[T], GenIterableLike[T, Iterable[T]], Traversable[T], GenTraversable[T], GenericTraversableTemplate[T, Iterable], TraversableLike[T, Iterable[T]], GenTraversableLike[T, Iterable[T]], Parallelizable[T, ParIterable[T]], TraversableOnce[T], GenTraversableOnce[T], FilterMonadic[T, Iterable[T]], HasNewBuilder[T, Iterable[T]], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MutableIndex
  2. Index
  3. Serializable
  4. Serializable
  5. Function1
  6. Iterable
  7. IterableLike
  8. Equals
  9. GenIterable
  10. GenIterableLike
  11. Traversable
  12. GenTraversable
  13. GenericTraversableTemplate
  14. TraversableLike
  15. GenTraversableLike
  16. Parallelizable
  17. TraversableOnce
  18. GenTraversableOnce
  19. FilterMonadic
  20. HasNewBuilder
  21. AnyRef
  22. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type Self = Iterable[T]

    Attributes
    protected
    Definition Classes
    TraversableLike
  2. class WithFilter extends FilterMonadic[A, Repr]

    Definition Classes
    TraversableLike

Abstract Value Members

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

    Returns the int id of the given element (0-based) or -1 if not found in the index.

    Returns the int id of the given element (0-based) or -1 if not found in the index. This method never changes the index (even in MutableIndex).

    Definition Classes
    Index → Function1
  2. abstract def index(t: T): Int

    Returns an integer index for the given object, adding it to the index if it is not already present.

  3. abstract def iterator: Iterator[T]

    Definition Classes
    IterableLike → GenIterableLike
  4. abstract def pairs: Iterator[(T, Int)]

    Returns the indexed items along with their indicies

    Returns the indexed items along with their indicies

    Definition Classes
    Index
  5. abstract def unapply(i: Int): Option[T]

    Returns Some(t) if this int corresponds to some object, and None otherwise.

    Returns Some(t) if this int corresponds to some object, and None otherwise.

    Definition Classes
    Index

Concrete 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 >: T, That](that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[Iterable[T], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  5. def ++:[B >: T, That](that: Traversable[B])(implicit bf: CanBuildFrom[Iterable[T], B, That]): That

    Definition Classes
    TraversableLike
  6. def ++:[B >: T, That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[Iterable[T], B, That]): That

    Definition Classes
    TraversableLike
  7. def /:[B](z: B)(op: (B, T) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  8. def :\[B](z: B)(op: (T, B) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  9. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  11. def addString(b: StringBuilder): StringBuilder

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

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

    Definition Classes
    TraversableOnce
  14. def aggregate[B](z: B)(seqop: (B, T) ⇒ B, combop: (B, B) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  15. def andThen[A](g: (Int) ⇒ A): (T) ⇒ A

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  16. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  17. def canEqual(that: Any): Boolean

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. def collect[B, That](pf: PartialFunction[T, B])(implicit bf: CanBuildFrom[Iterable[T], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  20. def collectFirst[B](pf: PartialFunction[T, B]): Option[B]

    Definition Classes
    TraversableOnce
  21. def companion: GenericCompanion[Iterable]

    Definition Classes
    Iterable → GenIterable → Traversable → GenTraversable → GenericTraversableTemplate
  22. def compose[A](g: (A) ⇒ T): (A) ⇒ Int

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  23. def contains(t: T): Boolean

    Returns true if this index contains the element t.

    Returns true if this index contains the element t.

    Definition Classes
    Index
  24. def copyToArray[B >: T](xs: Array[B], start: Int, len: Int): Unit

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

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

    Definition Classes
    TraversableOnce → GenTraversableOnce
  27. def copyToBuffer[B >: T](dest: Buffer[B]): Unit

    Definition Classes
    TraversableOnce
  28. def count(p: (T) ⇒ Boolean): Int

    Definition Classes
    TraversableOnce → GenTraversableOnce
  29. lazy val defaultHashCode: Int

    Attributes
    protected
    Definition Classes
    Index
  30. def drop(n: Int): Iterable[T]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  31. def dropRight(n: Int): Iterable[T]

    Definition Classes
    IterableLike
  32. def dropWhile(p: (T) ⇒ Boolean): Iterable[T]

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

    Definition Classes
    AnyRef
  34. def equals(other: Any): Boolean

    Definition Classes
    Index → Equals → AnyRef → Any
  35. def exists(p: (T) ⇒ Boolean): Boolean

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  36. def filter(p: (T) ⇒ Boolean): Iterable[T]

    Definition Classes
    TraversableLike → GenTraversableLike
  37. def filterNot(p: (T) ⇒ Boolean): Iterable[T]

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

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

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  40. def flatMap[B, That](f: (T) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[Iterable[T], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  41. def flatten[B](implicit asTraversable: (T) ⇒ GenTraversableOnce[B]): Iterable[B]

    Definition Classes
    GenericTraversableTemplate
  42. def fold[A1 >: T](z: A1)(op: (A1, A1) ⇒ A1): A1

    Definition Classes
    TraversableOnce → GenTraversableOnce
  43. def foldLeft[B](z: B)(op: (B, T) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  44. def foldRight[B](z: B)(op: (T, B) ⇒ B): B

    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  45. def forall(p: (T) ⇒ Boolean): Boolean

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  46. def foreach[U](f: (T) ⇒ U): Unit

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike → TraversableOnce → GenTraversableOnce → FilterMonadic
  47. def genericBuilder[B]: Builder[B, Iterable[B]]

    Definition Classes
    GenericTraversableTemplate
  48. def get(i: Int): T

    Returns an object at the given position or throws IndexOutOfBoundsException if it's not found.

    Returns an object at the given position or throws IndexOutOfBoundsException if it's not found.

    Definition Classes
    Index
  49. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  50. def groupBy[K](f: (T) ⇒ K): Map[K, Iterable[T]]

    Definition Classes
    TraversableLike → GenTraversableLike
  51. def grouped(size: Int): Iterator[Iterable[T]]

    Definition Classes
    IterableLike
  52. def hasDefiniteSize: Boolean

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

    Definition Classes
    Index → AnyRef → Any
  54. def head: T

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  55. def headOption: Option[T]

    Definition Classes
    TraversableLike → GenTraversableLike
  56. def indexOf(t: T): Int

    Override Iterable's linear-scan indexOf to use our apply method.

    Override Iterable's linear-scan indexOf to use our apply method.

    Definition Classes
    Index
  57. def indexOpt(t: T): Option[Int]

    Returns Some(i) if the object has been indexed, or None.

    Returns Some(i) if the object has been indexed, or None.

    Definition Classes
    Index
  58. def init: Iterable[T]

    Definition Classes
    TraversableLike → GenTraversableLike
  59. def inits: Iterator[Iterable[T]]

    Definition Classes
    TraversableLike
  60. def isEmpty: Boolean

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

    Definition Classes
    Any
  62. final def isTraversableAgain: Boolean

    Definition Classes
    TraversableLike → GenTraversableLike → GenTraversableOnce
  63. def last: T

    Definition Classes
    TraversableLike → GenTraversableLike
  64. def lastOption: Option[T]

    Definition Classes
    TraversableLike → GenTraversableLike
  65. def map[B, That](f: (T) ⇒ B)(implicit bf: CanBuildFrom[Iterable[T], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  66. def max[B >: T](implicit cmp: Ordering[B]): T

    Definition Classes
    TraversableOnce → GenTraversableOnce
  67. def maxBy[B](f: (T) ⇒ B)(implicit cmp: Ordering[B]): T

    Definition Classes
    TraversableOnce → GenTraversableOnce
  68. def min[B >: T](implicit cmp: Ordering[B]): T

    Definition Classes
    TraversableOnce → GenTraversableOnce
  69. def minBy[B](f: (T) ⇒ B)(implicit cmp: Ordering[B]): T

    Definition Classes
    TraversableOnce → GenTraversableOnce
  70. def mkString: String

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

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

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

    Definition Classes
    AnyRef
  74. def newBuilder: Builder[T, Iterable[T]]

    Attributes
    protected[this]
    Definition Classes
    GenericTraversableTemplate → HasNewBuilder
  75. def nonEmpty: Boolean

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

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

    Definition Classes
    AnyRef
  78. def par: ParIterable[T]

    Definition Classes
    Parallelizable
  79. def parCombiner: Combiner[T, ParIterable[T]]

    Attributes
    protected[this]
    Definition Classes
    TraversableLike → Parallelizable
  80. def partition(p: (T) ⇒ Boolean): (Iterable[T], Iterable[T])

    Definition Classes
    TraversableLike → GenTraversableLike
  81. def product[B >: T](implicit num: Numeric[B]): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  82. def reduce[A1 >: T](op: (A1, A1) ⇒ A1): A1

    Definition Classes
    TraversableOnce → GenTraversableOnce
  83. def reduceLeft[B >: T](op: (B, T) ⇒ B): B

    Definition Classes
    TraversableOnce
  84. def reduceLeftOption[B >: T](op: (B, T) ⇒ B): Option[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  85. def reduceOption[A1 >: T](op: (A1, A1) ⇒ A1): Option[A1]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  86. def reduceRight[B >: T](op: (T, B) ⇒ B): B

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

    Definition Classes
    TraversableOnce → GenTraversableOnce
  88. def repr: Iterable[T]

    Definition Classes
    TraversableLike → GenTraversableLike
  89. def reversed: List[T]

    Attributes
    protected[this]
    Definition Classes
    TraversableOnce
  90. def sameElements[B >: T](that: GenIterable[B]): Boolean

    Definition Classes
    IterableLike → GenIterableLike
  91. def scan[B >: T, That](z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[Iterable[T], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  92. def scanLeft[B, That](z: B)(op: (B, T) ⇒ B)(implicit bf: CanBuildFrom[Iterable[T], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  93. def scanRight[B, That](z: B)(op: (T, B) ⇒ B)(implicit bf: CanBuildFrom[Iterable[T], B, That]): That

    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.

  94. def seq: Iterable[T]

    Definition Classes
    Iterable → GenIterable → Traversable → GenTraversable → Parallelizable → TraversableOnce → GenTraversableOnce
  95. def size: Int

    Definition Classes
    TraversableOnce → GenTraversableOnce
  96. def slice(from: Int, until: Int): Iterable[T]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  97. def sliding(size: Int, step: Int): Iterator[Iterable[T]]

    Definition Classes
    IterableLike
  98. def sliding(size: Int): Iterator[Iterable[T]]

    Definition Classes
    IterableLike
  99. def span(p: (T) ⇒ Boolean): (Iterable[T], Iterable[T])

    Definition Classes
    TraversableLike → GenTraversableLike
  100. def splitAt(n: Int): (Iterable[T], Iterable[T])

    Definition Classes
    TraversableLike → GenTraversableLike
  101. def stringPrefix: String

    Definition Classes
    TraversableLike → GenTraversableLike
  102. def sum[B >: T](implicit num: Numeric[B]): B

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

    Definition Classes
    AnyRef
  104. def tail: Iterable[T]

    Definition Classes
    TraversableLike → GenTraversableLike
  105. def tails: Iterator[Iterable[T]]

    Definition Classes
    TraversableLike
  106. def take(n: Int): Iterable[T]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  107. def takeRight(n: Int): Iterable[T]

    Definition Classes
    IterableLike
  108. def takeWhile(p: (T) ⇒ Boolean): Iterable[T]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  109. def thisCollection: Iterable[T]

    Attributes
    protected[this]
    Definition Classes
    IterableLike → TraversableLike
  110. def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, T, Col[T]]): Col[T]

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

    Definition Classes
    TraversableOnce → GenTraversableOnce
  112. def toBuffer[B >: T]: Buffer[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  113. def toCollection(repr: Iterable[T]): Iterable[T]

    Attributes
    protected[this]
    Definition Classes
    IterableLike → TraversableLike
  114. def toIndexedSeq: IndexedSeq[T]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  115. def toIterable: Iterable[T]

    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  116. def toIterator: Iterator[T]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableOnce
  117. def toList: List[T]

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

    Definition Classes
    TraversableOnce → GenTraversableOnce
  119. def toSeq: Seq[T]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  120. def toSet[B >: T]: Set[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  121. def toStream: Stream[T]

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

    Definition Classes
    Index → Function1 → TraversableLike → AnyRef → Any
  123. def toTraversable: Traversable[T]

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  124. def toVector: Vector[T]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  125. def transpose[B](implicit asTraversable: (T) ⇒ GenTraversableOnce[B]): Iterable[Iterable[B]]

    Definition Classes
    GenericTraversableTemplate
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) transpose throws an IllegalArgumentException if collections are not uniformly sized.

  126. def unzip[A1, A2](implicit asPair: (T) ⇒ (A1, A2)): (Iterable[A1], Iterable[A2])

    Definition Classes
    GenericTraversableTemplate
  127. def unzip3[A1, A2, A3](implicit asTriple: (T) ⇒ (A1, A2, A3)): (Iterable[A1], Iterable[A2], Iterable[A3])

    Definition Classes
    GenericTraversableTemplate
  128. def view(from: Int, until: Int): IterableView[T, Iterable[T]]

    Definition Classes
    IterableLike → TraversableLike
  129. def view: IterableView[T, Iterable[T]]

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  133. def withFilter(p: (T) ⇒ Boolean): FilterMonadic[T, Iterable[T]]

    Definition Classes
    TraversableLike → FilterMonadic
  134. def zip[A1 >: T, B, That](that: GenIterable[B])(implicit bf: CanBuildFrom[Iterable[T], (A1, B), That]): That

    Definition Classes
    IterableLike → GenIterableLike
  135. def zipAll[B, A1 >: T, That](that: GenIterable[B], thisElem: A1, thatElem: B)(implicit bf: CanBuildFrom[Iterable[T], (A1, B), That]): That

    Definition Classes
    IterableLike → GenIterableLike
  136. def zipWithIndex[A1 >: T, That](implicit bf: CanBuildFrom[Iterable[T], (A1, Int), That]): That

    Definition Classes
    IterableLike → GenIterableLike
  137. def |[U](right: Index[U]): EitherIndex[T, U]

    Definition Classes
    Index

Deprecated Value Members

  1. def /:\[A1 >: T](z: A1)(op: (A1, A1) ⇒ A1): A1

    Definition Classes
    GenTraversableOnce
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) use fold instead

Inherited from Index[T]

Inherited from Serializable

Inherited from Serializable

Inherited from (T) ⇒ Int

Inherited from Iterable[T]

Inherited from IterableLike[T, Iterable[T]]

Inherited from Equals

Inherited from GenIterable[T]

Inherited from GenIterableLike[T, Iterable[T]]

Inherited from Traversable[T]

Inherited from GenTraversable[T]

Inherited from GenericTraversableTemplate[T, Iterable]

Inherited from TraversableLike[T, Iterable[T]]

Inherited from GenTraversableLike[T, Iterable[T]]

Inherited from Parallelizable[T, ParIterable[T]]

Inherited from TraversableOnce[T]

Inherited from GenTraversableOnce[T]

Inherited from FilterMonadic[T, Iterable[T]]

Inherited from HasNewBuilder[T, Iterable[T]]

Inherited from AnyRef

Inherited from Any

Ungrouped