fastnum

package
v0.32.0-victorialogs Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: Apache-2.0 Imports: 2 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendFloat64Ones

func AppendFloat64Ones(dst []float64, items int) []float64

AppendFloat64Ones appends items ones to dst and returns the result.

It is faster than the corresponding loop.

func AppendFloat64Zeros

func AppendFloat64Zeros(dst []float64, items int) []float64

AppendFloat64Zeros appends items zeros to dst and returns the result.

It is faster than the corresponding loop.

func AppendInt64Ones

func AppendInt64Ones(dst []int64, items int) []int64

AppendInt64Ones appends items ones to dst and returns the result.

It is faster than the corresponding loop.

func AppendInt64Zeros

func AppendInt64Zeros(dst []int64, items int) []int64

AppendInt64Zeros appends items zeros to dst and returns the result.

It is faster than the corresponding loop.

func IsFloat64Ones

func IsFloat64Ones(a []float64) bool

IsFloat64Ones checks whether a contains only ones.

func IsFloat64Zeros

func IsFloat64Zeros(a []float64) bool

IsFloat64Zeros checks whether a contains only zeros.

func IsInt64Ones

func IsInt64Ones(a []int64) bool

IsInt64Ones checks whether a contains only ones.

func IsInt64Zeros

func IsInt64Zeros(a []int64) bool

IsInt64Zeros checks whether a contains only zeros.

Types

This section is empty.

Jump to

Keyboard shortcuts

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