SparseArrayLike

trait SparseArrayLike[V]

An ArrayLike is something that can behave kind of like an Array, but isn't. They have a fixed size and reasonably fast access times. The main difference is that they're sparse in one way or another. This includes breeze.collection.mutable.OpenAddressHashArrays and breeze.collection.mutable.SparseArray. They support several reasonable operations

class Object
trait Matchable
class Any

Value members

Abstract methods

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

def apply(i: Int): V
def keysIterator: Iterator[Int]

Only iterates "active" keys

Only iterates "active" keys

def size: Int
def update(i: Int, t: V): Unit
def valuesIterator: Iterator[V]

Only iterates "active" elements

Only iterates "active" elements

Concrete methods

def foreach[U](f: V => U): Unit

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.

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.

def iterator: Iterator[(Int, V)]

Only iterates "active" elements

Only iterates "active" elements

def length: Int
def toArray[U >: V](implicit evidence$1: ClassTag[U]): Array[U]
def toIndexedSeq: List[V]
def toList: List[V]
def toMap: Map[Int, V]