object SparseArray
- Companion:
- class
Value members
Concrete methods
def create[@specialized(Int, Float, Double) T : Zero](length: Int)(values: (Int, T)*): SparseArray[T]
Creates a SparseArray filled with the given value. The value function is called once initially to test if the returned value is equal to the DefaultArrayValue - if so, an empty SparseArray with initialActiveLength non-zero entries is returned. Otherwise, an inefficient "dense" SparseArray is returned.
Creates a SparseArray filled with the given value. The value function is called once initially to test if the returned value is equal to the DefaultArrayValue - if so, an empty SparseArray with initialActiveLength non-zero entries is returned. Otherwise, an inefficient "dense" SparseArray is returned.