// LTE computes x <= y.
183700
func (c C) LTE(val Input) Input {
	if v, ok := val.(C); ok {
		if c <= v {
			return C(1)
		}
		return C(0)
	}
	return val.GTE(c)
}
261232
func ProxCmp(a, x, y interface{}) int {
	return proxCmp(ToBytes(a), ToBytes(x), ToBytes(y))
}
150641
func compute(X, Y mat.Matrix) *mat.Dense {
	var ret mat.Dense
	ret.Mul(X, Y)
	return &ret
}
285827
func (mat *MatMxN) ApproxEqualFunc(m2 *MatMxN, comp func(float64, float64) bool) bool {
	if mat == m2 {
		return true
	}
	if mat.m != m2.m || mat.n != m2.n {
		return false
	}

	for i, el := range mat.dat {
		if !comp(el, m2.dat[i]) {
			return false
		}
	}

	return true
}
541416
func (c Coord) String() string {
	return fmt.Sprintf("%f %f", c.X, c.Y)
}
646474
func (a Protocol) LT(b Protocol) bool {
	return a.Major < b.Major ||
		(a.Major == b.Major && a.Minor < b.Minor)
}
959657
func (c *Carbon) Lte(carb *Carbon) bool {
	return c.Lt(carb) || c.Eq(carb)
}
1262029
func withCompute(c context.Context, gce *compute.Service) context.Context {
	return context.WithValue(c, &gceKey, gce)
}
452978
func VersionIsBetween(version, gte, lte semver.Version) bool {
	if gte.NE(semver.Version{}) && !version.GTE(gte) {
		return false
	}
	if lte.NE(semver.Version{}) && !version.LTE(lte) {
		return false
	}

	return true
}
896025
func ToPlanar(lng, lat float64, level uint32) (x, y float64) {
	maxtiles := float64(uint32(1 << level))
	x = (lng/360.0 + 0.5) * maxtiles

	// bound it because we have a top of the world problem
	siny := math.Sin(lat * math.Pi / 180.0)

	if siny < -0.9999 {
		y = 0
	} else if siny > 0.9999 {
		y = maxtiles - 1
	} else {
		lat = 0.5 + 0.5*math.Log((1.0+siny)/(1.0-siny))/(-2*math.Pi)
		y = lat * maxtiles
	}

	return
}
367038
func compare(x, y string) bool {
	return subtle.ConstantTimeCompare([]byte(x), []byte(y)) == 1
}
562108
func (z *Big) QuoRem(x, y, r *Big) (*Big, *Big) {
	return z.Context.QuoRem(z, x, y, r)
}
145550
func (calc *LineCentroidCalculator) GetCentroid() geom.Coord {
	cent := geom.Coord(make([]float64, calc.layout.Stride()))
	cent[0] = calc.centSum[0] / calc.totalLength
	cent[1] = calc.centSum[1] / calc.totalLength
	return cent
}
649371
func getCompute(c context.Context) *compute.Service {
	return c.Value(&gceKey).(*compute.Service)
}
618605
func (b ValExprBuilder) Lt(val interface{}) BoolExprBuilder {
	return b.makeComparisonExpr(astLT, makeValExpr(val))
}
1223572
func Gte(left, right interface{}) Condition {
	return Condition{
		Type:  ConditionGte,
		Left:  NewOperand(left),
		Right: NewOperand(right),
	}
}
1278431
func (f Float32) OrElse(v float32) float32 {
	if f.Present() {
		return *f.value
	}
	return v
}