mod fpair

module fpair

Position-value pairs. Position-value pairs: a typed (Array1<T>, T) tuple with helpers.

Structs and Unions

struct FPair<T: Float>

A position in N-dimensional space paired with its objective-function value.

Used throughout eindir-core and downstream anneal-core to track the current, candidate, and best-seen states of a sampler.

pos: Array1<T>

The N-dimensional position.

val: T

The objective-function value evaluated at pos.

Implementations

impl<T: Float> FPair<T>

Functions

fn new(pos: Array1<T>, val: T) -> Self

Constructs a new FPair from a position and value.