Documentation ¶
Index ¶
- func BuildProjectionTable(tablename string, projectiontablename string)
- func CentreAnalysis(p []int, WY []int) (ptype int, subtype int, W []int)
- func GetFanoByGenusBasket(g int, B [][]int, db *sql.DB, tablename string) (*fanoData, error)
- func GetFanoByID(id int, db *sql.DB, tablename string) (*fanoData, error)
- func GetFanoGenusBasketDegreeByID(id int, db *sql.DB, tablename string) (int, [][]int, *rational.Element, error)
- func GetFanoIndexByGenusBasket(g int, B [][]int, db *sql.DB, tablename string) (int, error)
- func GetFanoWeightsByID(id int, db *sql.DB, tablename string) ([]int, error)
- func GetProjectionCentresAndTargetWeightsBySourceID(id int, db *sql.DB, tablename string, projectiontablename string) (centres [][]int, targetWs [][]int, err error)
- func GetRestrictedFanoIndexByGenusBasket(g int, B [][]int, db *sql.DB, tablename string, i int) (int, error)
- func MinDivisibleInt(k int, S ...int) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildProjectionTable ¶
BuildProjectionTable writes the initial projection data to sqlite
func CentreAnalysis ¶
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 ¶
GetFanoByGenusBasket retrieves a Fano from sqlite by its g,B.
func GetFanoByID ¶
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 ¶
GetFanoIndexByGenusBasket retrieves the index of a Fano from sqlite by its g,B.
func GetFanoWeightsByID ¶
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 ¶
MinDivisibleInt returns the smallest value in the slice S divisible by k. If no such then 0 is returned.
Types ¶
This section is empty.