search

package
v0.0.0-...-1420a53 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCantFindVertex = errors.New("Can not find vertex with given bounds and height")

ErrCantFindVertex is returned when a new vertex cannot be found within the given bounds.

Functions

func Worker

func Worker(input <-chan *partial.State, completedOutput chan<- interface{}, partialOutput chan<- interface{}, done <-chan struct{}, lg log.Interface)

Worker is the background worker that reads partial states from the channel input and for each partial state: - sees whether it completes to a new Fano polytope, if outputting it to the channel completedOutput; - attempts to grow it by adding a single extra vertex in all possible ways, passing the results to the channel partialOutput. The worker exits when the done channel is closed. On exit, it closes the channels completedOutput and partialOutput.

Types

This section is empty.

Jump to

Keyboard shortcuts

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