Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Point ¶
type Point struct {
// contains filtered or unexported fields
}
Point represents a singularity.
func FromString ¶
FromString converts strings like "[r,a]" to a singularity
func New ¶
New makes the singularity 1/r(1,a,r-a), replacing a by its least residue mod r, and switching a and r-a if necessary so a is the smaller of the two.
func (*Point) Polarisation ¶
Polarisation returns the polarisation of the singularity
type PointSlice ¶
type PointSlice []*Point
PointSlice
func PointSliceFromString ¶
func PointSliceFromString(s string) (PointSlice, error)
PointSliceFromString returns a point slice
func (PointSlice) Less ¶
func (B PointSlice) Less(i int, j int) bool
Less returns true iff the ith point of B is less than the jth point of B (in the sense of singularities)
func (PointSlice) String ¶
func (b PointSlice) String() string
String returns a point slice as a string
func (PointSlice) Swap ¶
func (B PointSlice) Swap(i int, j int)
Swap exchanges ith and jth entries of PointSlice B
Click to show internal directories.
Click to hide internal directories.