Packages

final class OpenAddressHashArray[V] extends Storage[V] with SparseArrayLike[V] with Serializable

This is a Sparse Array implementation backed by a linear-probing open address hash table.

Annotations
@SerialVersionUID()
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. OpenAddressHashArray
  2. Serializable
  3. SparseArrayLike
  4. Storage
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new OpenAddressHashArray(size: Int)(implicit manElem: ClassTag[V], zero: Zero[V])
  2. new OpenAddressHashArray(size: Int, default: ConfigurableDefault[V])(implicit manElem: ClassTag[V], zero: Zero[V])
  3. new OpenAddressHashArray(size: Int, default: ConfigurableDefault[V], initialSize: Int)(implicit manElem: ClassTag[V], zero: Zero[V])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def activeIterator: Iterator[(Int, V)]
  5. def activeKeysIterator: Iterator[Int]
  6. def activeSize: Int

    Mainly for marking the underlying data array extent in SparseVector/SparseArray

    Mainly for marking the underlying data array extent in SparseVector/SparseArray

    Definition Classes
    OpenAddressHashArraySparseArrayLikeStorage
  7. def activeValuesIterator: Iterator[V]
  8. def allVisitableIndicesActive: Boolean

    Only gives true if isActive would return true for all i.

    Only gives true if isActive would return true for all i. (May be false anyway)

    Definition Classes
    OpenAddressHashArrayStorage
  9. final def apply(i: Int): V
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def clear(): Unit
  12. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  13. def contains(i: Int): Boolean
  14. def copy: OpenAddressHashArray[V]
  15. def copyTo(other: OpenAddressHashArray[V]): Unit
  16. def data: Array[V]

    Returns the actual flat array of elements used.

    Returns the actual flat array of elements used.

    Definition Classes
    OpenAddressHashArrayStorage
  17. val default: ConfigurableDefault[V]
  18. def defaultValue: V
  19. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. def equals(that: Any): Boolean
    Definition Classes
    OpenAddressHashArray → AnyRef → Any
  21. def foreach[U](f: (V) => U): Unit

    Only iterates "active" elements.

    Only iterates "active" elements. I'm not sure how I feel about this behavior, since it's inconsistent with the rest of Breeze. I will think on it.

    Definition Classes
    SparseArrayLike
  22. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  23. def hashCode(): Int
    Definition Classes
    OpenAddressHashArray → AnyRef → Any
  24. def index: Array[Int]
  25. def indexAt(i: Int): Int

    Gives the logical index from the physical index.

    Gives the logical index from the physical index.

    Definition Classes
    OpenAddressHashArrayStorage
  26. def isActive(i: Int): Boolean

    Some storages (namely HashStorage) won't have active indices packed.

    Some storages (namely HashStorage) won't have active indices packed. This lets you know if the bin is actively in use.

    i

    index into index/data arrays

    Definition Classes
    OpenAddressHashArrayStorage
  27. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  28. def iterableSize: Int

    How many elements must be iterated over using valueAt/indexAt.

    How many elements must be iterated over using valueAt/indexAt.

    Definition Classes
    OpenAddressHashArrayStorage
  29. def iterator: Iterator[(Int, V)]

    Only iterates "active" elements

    Only iterates "active" elements

    Definition Classes
    SparseArrayLike
  30. def keysIterator: Iterator[Int]

    Only iterates "active" keys

    Only iterates "active" keys

    Definition Classes
    OpenAddressHashArraySparseArrayLike
  31. def length: Int
    Definition Classes
    SparseArrayLike
  32. implicit val manElem: ClassTag[V]
    Attributes
    protected
  33. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  34. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  35. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  36. final def rehash(): Unit
    Attributes
    protected
  37. val size: Int

    How many elements are logically stored here.

    How many elements are logically stored here. This may be <= activeSize.

    Definition Classes
    OpenAddressHashArraySparseArrayLikeStorage
  38. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  39. def toArray[U >: V](implicit arg0: ClassTag[U]): Array[U]
    Definition Classes
    SparseArrayLike
  40. def toIndexedSeq: List[V]
    Definition Classes
    SparseArrayLike
  41. def toList: List[V]
    Definition Classes
    SparseArrayLike
  42. def toMap: Map[Int, V]
    Definition Classes
    SparseArrayLike
  43. def toString(): String
    Definition Classes
    OpenAddressHashArray → AnyRef → Any
  44. final def update(i: Int, v: V): Unit
  45. def valueAt(i: Int): V

    same as data(i).

    same as data(i). Gives the value at the underlying offset.

    i

    index into the data array

    Definition Classes
    OpenAddressHashArrayStorage
  46. def valuesIterator: Iterator[V]

    Only iterates "active" elements

    Only iterates "active" elements

    Definition Classes
    OpenAddressHashArraySparseArrayLike
  47. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  48. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  49. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  50. implicit val zero: Zero[V]

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from SparseArrayLike[V]

Inherited from Storage[V]

Inherited from AnyRef

Inherited from Any

Ungrouped