projection

package
v0.1.2-0...-50d33d3 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

This section is empty.

Functions

func BuildProjectionTable

func BuildProjectionTable(tablename string, projectiontablename string)

BuildProjectionTable writes the initial projection data to sqlite

func CentreAnalysis

func CentreAnalysis(p []int, WY []int) (ptype int, subtype int, W []int)

CentreAnalysis determines whether projection from p with target ambient weights WY is Type I, II_n or IV, and returns the ambient weights of the unprojection.

func GetFanoByGenusBasket

func GetFanoByGenusBasket(g int, B [][]int, db *sql.DB, tablename string) (*fanoData, error)

GetFanoByGenusBasket retrieves a Fano from sqlite by its g,B.

func GetFanoByID

func GetFanoByID(id int, db *sql.DB, tablename string) (*fanoData, error)

GetFanoByID retrieves a Fano from sqlite by its grdbid.

func GetFanoGenusBasketDegreeByID

func GetFanoGenusBasketDegreeByID(id int, db *sql.DB, tablename string) (int, [][]int, *rational.Element, error)

GetFanoGenusBasketDegreeByID retrieves a Fano's genus, basket and degree from sqlite by its grdbid.

func GetFanoIndexByGenusBasket

func GetFanoIndexByGenusBasket(g int, B [][]int, db *sql.DB, tablename string) (int, error)

GetFanoIndexByGenusBasket retrieves the index of a Fano from sqlite by its g,B.

func GetFanoWeightsByID

func GetFanoWeightsByID(id int, db *sql.DB, tablename string) ([]int, error)

GetFanoWeightsByID retrieves a Fano's ambient weights from sqlite by its grdbid.

func GetProjectionCentresAndTargetWeightsBySourceID

func GetProjectionCentresAndTargetWeightsBySourceID(id int, db *sql.DB, tablename string, projectiontablename string) (centres [][]int, targetWs [][]int, err error)

GetProjectionCentresAndTargetWeightsBySourceID retrieves that data from sqlite by its grdbid.

func GetRestrictedFanoIndexByGenusBasket

func GetRestrictedFanoIndexByGenusBasket(g int, B [][]int, db *sql.DB, tablename string, i int) (int, error)

GetRestrictedFanoIndexByGenusBasket retrieves the index of a Fano from sqlite by its g,B BUT restricting to those indices < i.

func MinDivisibleInt

func MinDivisibleInt(k int, S ...int) int

MinDivisibleInt returns the smallest value in the slice S divisible by k. If no such then 0 is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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