Stacker

org.saddle.index.Stacker
See theStacker companion object
trait Stacker[I, J, O]

A Stacker operates on two input Index instances and produces a new output Index whose entries are drawn from the Cartesian product of the elements of the original indexes, and whose ordering is likewise specified by the original orderings. For instance,

 Index[Int](1,2) stack Index[Char]('a','b')

results in

 Index[(Int, Char)]((1,'a'), (1,'b'), (2,'a'), (2,'b'))

whereas

 Index[(Char, Int)](('x',1), ('y',2)) stack Index[Char]('a','b')

results in

 Index[(Char, Int, Char)](('x',1,'a'), ('x',1,'b'), ('y',2,'a'), ('y',2,'b'))

Type parameters

I

Type of the elements of the left index

J

Type of the elements of the right index

O

Type of the elements of the output index

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def apply(ix1: Index[I], ix2: Index[J]): Index[O]

Take two indexes and stack them, producing a third index

Take two indexes and stack them, producing a third index

Value parameters

ix1

Left index

ix2

Right index

Attributes

def ord: Order[O]

Implementation of an Ordering for O

Implementation of an Ordering for O

Attributes

def tag: ScalarTag[O]

Implementation of a ST for O

Implementation of a ST for O

Attributes