utils

package
v0.0.0-...-00da793 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsIn

func IsIn[T comparable](check T, slice []T) bool

func NumOccurences

func NumOccurences[T comparable](check T, slice []T) int

func SumSlice

func SumSlice[T Number](s []T) T

func Unique

func Unique[T comparable](slice []T) []T

func VectorToSlice

func VectorToSlice(v mat.Vector) []float64

Types

type Number

type Number interface {
	int | float64
}

Jump to

Keyboard shortcuts

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