basket

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Points

type Points struct {
	// contains filtered or unexported fields
}

Points is a basket of point singularities (a slice of points)

func Fano3Basket

func Fano3Basket(R []int, A []int) (*Points, error)

Fano3Basket is a standard basket constructor for the fano3 db. The input is a pair of parallel slices R = [r1,r2,...] and A = [a1,a2,...]. Return the basket [[r1,a1],[r2,a2],...].

func New

New creates a basket from a point slice WHICH IT SORTS

func (*Points) Entry

func (B *Points) Entry(i int) *singularity.Point

Entry returns the ith entry of basket B

func (*Points) Include

func (B *Points) Include(p ...*singularity.Point) *Points

Include adds the given point to the basket

func (*Points) Len

func (B *Points) Len() int

Len returns the length of the basket B

func (*Points) Remove

func (B *Points) Remove(i int) *Points

Remove the ith entry of basket B WHICH IS ORDERED

func (*Points) Scan

func (B *Points) Scan(src interface{}) error

Scan

func (*Points) String

func (B *Points) String() string

String represents a basket as a string (as a slice of int slices)

func (*Points) Value

func (B *Points) Value() (driver.Value, error)

Value

Jump to

Keyboard shortcuts

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