checkpnt

package
v0.0.0-...-0accbe3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2013 License: LGPL-3.0 Imports: 10 Imported by: 1

Documentation

Overview

Package for saving and check execution variables at checkpoints.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Activate

func Activate()

func AddFloatVar

func AddFloatVar(name string, fptr *float64)

Add or update float variable as check point variable.

func AddMatrixVar

func AddMatrixVar(name string, mtx *matrix.FloatMatrix)

Add matrix variable as checkpointable variable.

func AddScaleVar

func AddScaleVar(w *sets.FloatMatrixSet)

Add or update scaling matrix set to checkpoint variables.

func AddVerifiable

func AddVerifiable(name string, vvar Verifiable)

Add or update float variable as check point variable.

func Check

func Check(name string, minor int)

Check variables at checkpoint.

func Format

func Format(format string)

func Major

func Major() int

Return current major number.

func MajorNext

func MajorNext()

Advance major number by one.

func MinorEmpty

func MinorEmpty() bool

Test if minor number stack is empty.

func MinorPop

func MinorPop() int

Pop minor number on top of the stack.

func MinorPush

func MinorPush(minor int)

Push new minor number on to stack.

func MinorTop

func MinorTop() int

Get minor number on top of the stack.

func PanicVar

func PanicVar(name string, ispanic bool)

Set or unset panic flag for variable.

func PrintVariables

func PrintVariables()

Print checkpoint variables.

func Report

func Report()

Report on check point variables. Prints out the last check point variable turned invalid.

func Reset

func Reset(path string)

func Verbose

func Verbose(flag bool)

Types

type Verifiability

type Verifiability interface {
	// Verify variable against reference values. Returns difference.
	Verify(vals ...interface{}) float64
}

type Verifiable

type Verifiable interface {
	// Verify variable against reference values. Returns difference.
	Verify(dataline string) float64
	ShowError(dataline string)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL