float32y

package
v0.1.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abs

func Abs(v float32) float32

Abs returns the absolute value of v. NOTE: this method is deprecated. Use helpy.Abs instead.

func Contains

func Contains(vs []float32, v float32) bool

Contains returns true if vs contains v. NOTE: this function is deprecated. Use slicey.Contains instead.

func Float32OrDefault

func Float32OrDefault(v *float32, defaultVal float32) *float32

Float32OrDefault returns float32 if it is not nil, and a pointer to defaultVal otherwise. NOTE: this method is deprecated. Use helpy.DerefOrValue instead.

func Pointer

func Pointer(v float32) *float32

Pointer returns a pointer to the given float32. NOTE: this method is deprecated. Use helpy.Pointer instead.

func Random

func Random() float32

Random returns a random value of type float32

func RandomN

func RandomN(n float32) float32

RandomN returns a non-negative pseudo-random number in [0,n) of type float32.

func Unique

func Unique(vs []float32) []float32

Unique returns a new list containing unique float32s from the given input NOTE: this function is deprecated. Use slicey.Unique instead.

Types

type Set

type Set helpy.Set[float32]

NOTE: this type is deprecated. Use helpy.Set instead

func MakeSet

func MakeSet(vs ...float32) Set

MakeSet returns a lookup map for float32 NOTE: this function is deprecated. Use helpy.MakeSet instead.

func ToSet

func ToSet(vs []float32) Set

ToSet returns a lookup map for float32. NOTE: this function is deprecated. Use helpy.ToSet instead.

func (Set) Contains

func (s Set) Contains(v float32) bool

func (Set) Equal

func (s Set) Equal(s2 Set) bool

func (Set) Intersect

func (s Set) Intersect(s2 Set) Set

func (Set) Union

func (s Set) Union(s2 Set) Set

Jump to

Keyboard shortcuts

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