scala.collection.mutable.ArrayOps

ofFloat

class ofFloat extends ArrayOps[Float] with ArrayLike[Float, Array[Float]]

Inherits

  1. ArrayOps
  2. ArrayLike
  3. IndexedSeqLike
  4. IndexedSeqLike
  5. SeqLike
  6. IterableLike
  7. TraversableLike
  8. HasNewBuilder
  9. Equals
  10. AnyRef
  11. Any

Type Members

  1. class WithFilter extends AnyRef

    A class supporting filtered operations

Value Members

  1. def ++[B >: Float, That](that: Iterator[B])(bf: CanBuildFrom[Array[Float], B, That]): That

    Concatenates this sequence with the elements of an iterator

  2. def ++[B >: Float, That](that: Traversable[B])(bf: CanBuildFrom[Array[Float], B, That]): That

    Concatenates this sequence with the elements of a traversable collection

  3. def +:[B >: Float, That](elem: B)(bf: CanBuildFrom[Array[Float], B, That]): That

    Prepends an element to this sequence

  4. def /:[B](z: B)(op: (B, Float) ⇒ B): B

    Applies a binary operator to a start value and all elements of this sequence, going left to right

  5. def :+[B >: Float, That](elem: B)(bf: CanBuildFrom[Array[Float], B, That]): That

    Appends an element to this sequence

  6. def :\[B](z: B)(op: (Float, B) ⇒ B): B

    Applies a binary operator to all elements of this sequence and a start value, going right to left

  7. def addString(b: StringBuilder): StringBuilder

    Appends all elements of this sequence to a string builder

  8. def addString(b: StringBuilder, sep: String): StringBuilder

    Appends all elements of this sequence to a string builder using a separator string

  9. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

    Appends all elements of this sequence to a string builder using start, end, and separator strings

  10. def apply(index: Int): Float

    Selects an element by its index in the sequence

  11. def canEqual(that: Any): Boolean

    Method called from equality methods, so that user-defined subclasses can refuse to be equal to other collections of the same kind

  12. def contains(elem: Any): Boolean

    Tests whether this sequence contains a given value as an element

  13. def containsSlice[B](that: Seq[B]): Boolean

    Tests whether this sequence contains a given sequence as a slice

  14. def copyToArray[B >: Float](xs: Array[B], start: Int, len: Int): Unit

    Copies elements of this sequence to an array

  15. def copyToArray[B >: Float](xs: Array[B]): Unit

    Copies elements of this sequence to an array

  16. def copyToArray[B >: Float](xs: Array[B], start: Int): Unit

    Copies elements of this sequence to an array

  17. def copyToBuffer[B >: Float](dest: Buffer[B]): Unit

    Copies all elements of this sequence to a buffer

  18. def corresponds[B](that: Seq[B])(p: (Float, B) ⇒ Boolean): Boolean

    Tests whether every element of this sequence relates to the corresponding element of another sequence by satisfying a test predicate

  19. def count(p: (Float) ⇒ Boolean): Int

    Counts the number of elements in the sequence which satisfy a predicate

  20. def deep: IndexedSeq[Any]

    Creates a possible nested IndexedSeq which consists of all the elements of this array

  21. def diff[B >: Float, That](that: Seq[B]): Array[Float]

    Computes the multiset difference between this sequence and another sequence

  22. def drop(n: Int): Array[Float]

    Selects all elements except first n ones

  23. def dropRight(n: Int): Array[Float]

    Selects all elements except first n ones

  24. def dropWhile(p: (Float) ⇒ Boolean): Array[Float]

    Drops longest prefix of elements that satisfy a predicate

  25. def elements: Iterator[Float]

  26. def endsWith[B](that: Seq[B]): Boolean

    Tests whether this sequence ends with the given sequence

  27. def equals(that: Any): Boolean

    The equality method defined in AnyRef

  28. def equalsWith[B](that: Seq[B])(f: (Float, B) ⇒ Boolean): Boolean

    Tests whether every element of this sequence relates to the corresponding element of another sequence by satisfying a test predicate

  29. def exists(p: (Float) ⇒ Boolean): Boolean

    Tests whether a predicate holds for some of the elements of this sequence

  30. def filter(p: (Float) ⇒ Boolean): Array[Float]

    Selects all elements of this sequence which satisfy a predicate

  31. def filterNot(p: (Float) ⇒ Boolean): Array[Float]

    Selects all elements of this sequence which do not satisfy a predicate

  32. def find(p: (Float) ⇒ Boolean): Option[Float]

    Finds the first element of the sequence satisfying a predicate, if any

  33. def findIndexOf(p: (Float) ⇒ Boolean): Int

    Returns index of the first element satisying a predicate, or -1

  34. def findLastIndexOf(p: (Float) ⇒ Boolean): Int

    Returns index of the last element satisying a predicate, or -1

  35. def first: Float

  36. def firstOption: Option[Float]

    None if iterable is empty

  37. def flatMap[B, That](f: (Float) ⇒ Traversable[B])(bf: CanBuildFrom[Array[Float], B, That]): That

    Builds a new collection by applying a function to all elements of this sequence and concatenating the results

  38. def flatten[U](asArray: (Float) ⇒ Array[U]): Array[U]

    Flattens a two-dimensional array by concatenating all its rows into a single array

  39. def foldLeft[B](z: B)(op: (B, Float) ⇒ B): B

    Applies a binary operator to a start value and all elements of this sequence, going left to right

  40. def foldRight[B](z: B)(op: (Float, B) ⇒ B): B

    Applies a binary operator to all elements of this sequence and a start value, going right to left

  41. def forall(p: (Float) ⇒ Boolean): Boolean

    Tests whether a predicate holds for all elements of this sequence

  42. def foreach[U](f: (Float) ⇒ U): Unit

    Applies a function f to all elements of this sequence

  43. def groupBy[K](f: (Float) ⇒ K): Map[K, Array[Float]]

    Partitions this sequence into a map of sequences according to some discriminator function

  44. def hasDefiniteSize: Boolean

    Tests whether this sequence is known to have a finite size

  45. def hashCode(): Int

    Hashcodes for Seq produce a value from the hashcodes of all the elements of the sequence

  46. def head: Float

    Selects the first element of this sequence

  47. def headOption: Option[Float]

    Optionally selects the first element

  48. def indexOf[B >: Float](elem: B, from: Int): Int

    Finds index of first occurrence of some value in this sequence after or at some start index

  49. def indexOf[B >: Float](elem: B): Int

    Finds index of first occurrence of some value in this sequence

  50. def indexOfSlice[B >: Float](that: Seq[B], from: Int): Int

    Finds first index after or at a start index where this sequence contains a given sequence as a slice

  51. def indexOfSlice[B >: Float](that: Seq[B]): Int

    Finds first index where this sequence contains a given sequence as a slice

  52. def indexWhere(p: (Float) ⇒ Boolean, from: Int): Int

    Finds index of the first element satisfying some predicate after or at some start index

  53. def indexWhere(p: (Float) ⇒ Boolean): Int

    Finds index of first element satisfying some predicate

  54. def indices: Range

    Produces the range of all indices of this sequence

  55. def init: Array[Float]

    Selects all elements except the last

  56. def intersect[B >: Float, That](that: Seq[B]): Array[Float]

    Computes the multiset intersection between this sequence and another sequence

  57. def isDefinedAt(idx: Int): Boolean

    Tests whether this sequence contains given index

  58. def isEmpty: Boolean

    Tests whether this sequence is empty

  59. def iterator: Iterator[Float]

    Creates a new iterator over all elements contained in this iterable object

  60. def last: Float

    Selects the last element

  61. def lastIndexOf[B >: Float](elem: B, end: Int): Int

    Finds index of last occurrence of some value in this sequence before or at a given end index

  62. def lastIndexOf[B >: Float](elem: B): Int

    Finds index of last occurrence of some value in this sequence

  63. def lastIndexOfSlice[B >: Float](that: Seq[B], end: Int): Int

    Finds last index before or at a given end index where this sequence contains a given sequence as a slice

  64. def lastIndexOfSlice[B >: Float](that: Seq[B]): Int

    Finds last index where this sequence contains a given sequence as a slice

  65. def lastIndexWhere(p: (Float) ⇒ Boolean, end: Int): Int

    Finds index of last element satisfying some predicate before or at given end index

  66. def lastIndexWhere(p: (Float) ⇒ Boolean): Int

    Finds index of last element satisfying some predicate

  67. def lastOption: Option[Float]

    Optionally selects the last element

  68. def length: Int

    The length of the sequence

  69. def lengthCompare(len: Int): Int

    Compares the length of this sequence to a test value

  70. def map[B, That](f: (Float) ⇒ B)(bf: CanBuildFrom[Array[Float], B, That]): That

    Builds a new collection by applying a function to all elements of this sequence

  71. def max[B >: Float](cmp: Ordering[B]): Float

    Finds the largest element

  72. def min[B >: Float](cmp: Ordering[B]): Float

    Finds the smallest element

  73. def mkString: String

    Displays all elements of this sequence in a string

  74. def mkString(sep: String): String

    Displays all elements of this sequence in a string using a separator string

  75. def mkString(start: String, sep: String, end: String): String

    Displays all elements of this sequence in a string using start, end, and separator strings

  76. def nonEmpty: Boolean

    Tests whether the sequence is not empty

  77. def padTo[B >: Float, That](len: Int, elem: B)(bf: CanBuildFrom[Array[Float], B, That]): That

    Appends an element value to this sequence until a given target length is reached

  78. def partialMap[B, That](pf: PartialFunction[Float, B])(bf: CanBuildFrom[Array[Float], B, That]): That

    Builds a new collection by applying a partial function to all elements of this sequence on which the function is defined

  79. def partition(p: (Float) ⇒ Boolean): (Array[Float], Array[Float])

    Partitions this sequence in two sequences according to a predicate

  80. def patch[B >: Float, That](from: Int, patch: Seq[B], replaced: Int)(bf: CanBuildFrom[Array[Float], B, That]): That

    Produces a new sequence where a slice of elements in this sequence is replaced by another sequence

  81. def prefixLength(p: (Float) ⇒ Boolean): Int

    Returns the length of the longest prefix whose elements all satisfy some preficate

  82. def product[B >: Float](num: Numeric[B]): B

    Multiplies up the elements of this collection

  83. def projection: SeqView[Float, Array[Float]]

    returns a projection that can be used to call non-strict filter, map, and flatMap methods that build projections of the collection

  84. def reduceLeft[B >: Float](op: (B, Float) ⇒ B): B

    Applies a binary operator to all elements of this sequence, going left to right

  85. def reduceLeftOption[B >: Float](op: (B, Float) ⇒ B): Option[B]

    Optionally applies a binary operator to all elements of this sequence, going left to right

  86. def reduceRight[B >: Float](op: (Float, B) ⇒ B): B

    Applies a binary operator to all elements of this sequence, going right to left

  87. def reduceRightOption[B >: Float](op: (Float, B) ⇒ B): Option[B]

    Optionally applies a binary operator to all elements of this sequence, going right to left

  88. def removeDuplicates: Array[Float]

    Builds a new sequence from this sequence without any duplicate elements

  89. val repr: Array[Float]

    The collection of type sequence underlying this TraversableLike object

  90. def reverse: Array[Float]

    Returns new sequence wih elements in reversed order

  91. def reverseIterator: Iterator[Float]

    An iterator yielding elements in reversed order

  92. def reverseMap[B, That](f: (Float) ⇒ B)(bf: CanBuildFrom[Array[Float], B, That]): That

    Builds a new collection by applying a function to all elements of this sequence and collecting the results in reversed order

  93. def reversedElements: Iterator[Float]

  94. def sameElements[B >: Float](that: Iterable[B]): Boolean

    Checks if the other iterable collection contains the same elements in the same order as this sequence

  95. def segmentLength(p: (Float) ⇒ Boolean, from: Int): Int

    Computes length of longest segment whose elements all satisfy some preficate

  96. def size: Int

    The size of this sequence, equivalent to length

  97. def slice(from: Int, until: Int): Array[Float]

    Selects an interval of elements

  98. def sortBy[B](f: (Float) ⇒ B)(ord: Ordering[B]): Array[Float]

    Sorts this Seq according to the Ordering which results from transforming an implicitly given Ordering with a transformation function

  99. def sortWith[B >: Float](ord: Ordering[B]): Array[Float]

    Sorts this sequence according to an Ordering

  100. def sortWith(lt: (Float, Float) ⇒ Boolean): Array[Float]

    Sorts this sequence according to a comparison function

  101. def span(p: (Float) ⇒ Boolean): (Array[Float], Array[Float])

    Spits this sequence into a prefix/suffix pair according to a predicate

  102. def splitAt(n: Int): (Array[Float], Array[Float])

    Splits this sequence into two at a given position

  103. def startsWith[B](that: Seq[B], offset: Int): Boolean

    Tests whether this sequence contains the given sequence at a given index

  104. def startsWith[B](that: Seq[B]): Boolean

    Tests whether this sequence starts with the given sequence

  105. def stringPrefix: String

    Defines the prefix of this object's toString representation

  106. def sum[B >: Float](num: Numeric[B]): B

    Sums up the elements of this collection

  107. def tail: Array[Float]

    Selects all elements except the first

  108. def take(n: Int): Array[Float]

    Selects first n elements

  109. def takeRight(n: Int): Array[Float]

    Selects last n elements

  110. def takeWhile(p: (Float) ⇒ Boolean): Array[Float]

    Takes longest prefix of elements that satisfy a predicate

  111. def toArray[B >: Float](arg0: ClassManifest[B]): Array[B]

    Converts this sequence to an array

  112. def toIndexedSeq[B >: Float]: IndexedSeq[B]

    Converts this sequence to an indexed sequence

  113. def toIterable: Iterable[Float]

    Converts this sequence to an iterable collection

  114. def toList: List[Float]

    Converts this sequence to a list

  115. def toSeq: Seq[Float]

    Converts this sequence to a sequence

  116. def toSet[B >: Float]: Set[B]

    Converts this sequence to a set

  117. def toStream: Stream[Float]

    Converts this sequence to a stream

  118. def toString(): String

    Converts this sequence to a string

  119. def transpose[U](asArray: (Float) ⇒ Array[U]): Array[Array[U]]

    Transposes a two dimensional array

  120. def union[B >: Float, That](that: Seq[B])(bf: CanBuildFrom[Array[Float], B, That]): That

    Produces a new sequence which contains all elements of this sequence and also all elements of a given sequence

  121. def update(index: Int, elem: Float): Unit

    Replaces element at given index with a new value

  122. def updated[B >: Float, That](index: Int, elem: B)(bf: CanBuildFrom[Array[Float], B, That]): That

    A copy of this sequence with one single replaced element

  123. def view(from: Int, until: Int): IndexedSeqView[Float, Array[Float]]

    A sub-sequence view starting at index from and extending up to (but not including) index until

  124. def view: IndexedSeqView[Float, Array[Float]]

    Creates a view of this iterable @see Iterable

  125. def withFilter(p: (Float) ⇒ Boolean): WithFilter

    Creates a non-strict filter of this sequence

  126. def zip[A1 >: Float, B, That](that: Iterable[B])(bf: CanBuildFrom[Array[Float], (A1, B), That]): That

    Returns a sequence formed from this sequence and another iterable collection by combining corresponding elements in pairs

  127. def zipAll[B, A1 >: Float, That](that: Iterable[B], thisElem: A1, thatElem: B)(bf: CanBuildFrom[Array[Float], (A1, B), That]): That

    Returns a sequence formed from this sequence and another iterable collection by combining corresponding elements in pairs

  128. def zipWithIndex[A1 >: Float, That](bf: CanBuildFrom[Array[Float], (A1, Int), That]): That

    Zips this sequence with its indices

Instance constructors

  1. new ofFloat(repr: Array[Float])

  2. new ofFloat()