Class index_spec (o2scl)

O2scl : Class List

class o2scl::index_spec

Index specification.

Possible values for type

const size_t empty = 0

Empty specification.

const size_t index = 1

Retain an index.

const size_t fixed = 2

Fix the value of an index.

const size_t sum = 3

Sum over an index.

const size_t trace = 4

Perform a trace (sum over two indices)

const size_t reverse = 5

Reverse an index.

const size_t range = 6

Choose a new range for an index.

const size_t interp = 7

Interpolate a value to fix an index.

const size_t grid = 8

Interpolate a value to set a new grid (fixed bin number)

const size_t gridw = 9

Interpolate a value to set a new grid (fixed bin width)

index_spec()

Default constructor.

index_spec(size_t typ, size_t i1, size_t i2 = 0, size_t i3 = 0, double v1 = 0.0, double v2 = 0.0, double v3 = 0.0)

Explicit full constructor.

Public Members

size_t type

Type of specification.

size_t ix1

First argument.

size_t ix2

Second argument.

size_t ix3

Third argument.

double val1

First double argument.

double val2

Second double argument.

double val3

Third double argument.