number

package
v0.64.1 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: MIT Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrOverflow = errors.New("integer overflow")

Functions

func Int16 added in v0.37.0

func Int16(i int) (int16, error)

func Int32 added in v0.37.0

func Int32(i int) (int32, error)

func Int8 added in v0.37.0

func Int8(i int) (int8, error)

func IntLength

func IntLength[I int | int8 | int16 | int32 | int64](num I) uint

func IntSliceDedupe

func IntSliceDedupe(elems []int, sortElems bool) []int

func MatrixColsMax added in v0.33.5

func MatrixColsMax(d [][]float64) []float64

func MatrixRowsMax added in v0.33.5

func MatrixRowsMax(d [][]float64) []float64

func SliceIntBuildBeginEnd added in v0.63.0

func SliceIntBuildBeginEnd(beg, end int) []int

SliceIntBuildBeginEnd returns of slice of integers from beginning to end, inclusive.

func SliceToFloat64 added in v0.41.1

func SliceToFloat64[T constraints.Integer | constraints.Float](src []T) []float64

SliceToFloat64 converts a slice of integers or floats to float64.

Types

This section is empty.

Jump to

Keyboard shortcuts

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