internal

package
v0.0.0-...-6ee9ddb Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2018 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfAllDummiesInRow

func CheckIfAllDummiesInRow(row *Row) bool

func IsNearZero

func IsNearZero(value float64) bool

Types

type Row

type Row struct {
	Cells    map[*Symbol]float64
	Constant float64
}

func CopyRow

func CopyRow(srcRow *Row) *Row

func NewRow

func NewRow(c float64) *Row

func (*Row) Add

func (row *Row) Add(val float64) float64

func (*Row) CoefficientForSymbol

func (row *Row) CoefficientForSymbol(symbol *Symbol) float64

func (*Row) InsertRow

func (row *Row) InsertRow(secRow *Row, coefficient float64)

func (*Row) InsertSymbol

func (row *Row) InsertSymbol(symbol *Symbol, coefficient float64)

func (*Row) ReverseSign

func (row *Row) ReverseSign()

func (*Row) SolveForSymbol

func (row *Row) SolveForSymbol(symbol *Symbol)

func (*Row) SolveForSymbols

func (row *Row) SolveForSymbols(lhs *Symbol, rhs *Symbol)

func (*Row) Substitute

func (row *Row) Substitute(symbol *Symbol, secRow *Row)

type Symbol

type Symbol struct {
	Type SymbolType
}

func AnyPivotableSymbol

func AnyPivotableSymbol(row *Row) *Symbol

type SymbolType

type SymbolType int
const (
	Invalid SymbolType = iota
	External
	Slack
	Error
	Dummy
)

type Tag

type Tag struct {
	Marker *Symbol
	Other  *Symbol
}

func FromTag

func FromTag(tag *Tag) *Tag

Jump to

Keyboard shortcuts

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