org.saddle.locator

Type members

Classlikes

trait Locator[@specialized(Boolean, Int, Long, Double) T]

The Locator class provides a mapping from a key to the first location of that key within a corresponding org.saddle.Index containing at least one of that key.

The Locator class provides a mapping from a key to the first location of that key within a corresponding org.saddle.Index containing at least one of that key.

As it provides a representative for a subset of keys in the index, in the language of category theory, this mapping is a ''section'':

Given an array x of type T, which represents a mapping

           f
       {i} => {T}

for i in [0, x.length), Locator provides the associated section

           s
       {T} => {i}

where s(t) = min(i) for any i such that f(i) = t.

Companion:
object
object Locator
Companion:
class
class LocatorAny[T](sz: Int)(implicit evidence$1: ScalarTag[T]) extends Locator[T]
class LocatorBool extends Locator[Boolean]

A bool-to-integer hash map

A bool-to-integer hash map

class LocatorDouble(sz: Int) extends Locator[Double]
class LocatorInt(sz: Int) extends Locator[Int]
class LocatorLong(sz: Int) extends Locator[Long]