SparseArray

object SparseArray
Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply[@specialized(Int, Float, Double) T](values: T*)(implicit evidence$3: ClassTag[T], evidence$4: Zero[T]): SparseArray[T]
def create[@specialized(Int, Float, Double) T](length: Int)(values: (Int, T)*)(implicit evidence$7: ClassTag[T], evidence$8: Zero[T]): SparseArray[T]
def fill[@specialized(Int, Float, Double) T](length: Int)(value: => T)(implicit evidence$5: ClassTag[T], evidence$6: Zero[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.

def tabulate[@specialized(Int, Float, Double) T](length: Int)(fn: Int => T)(implicit evidence$9: ClassTag[T], evidence$10: Zero[T]): SparseArray[T]