Documentation
¶
Overview ¶
Package types is mostly a top level directory for GoMLX important types. See sub-packages `shapes`, `tensor` and `slices`.
This package also provides the types: Set.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Set ¶
type Set[T comparable] map[T]struct{}
Set implements a Set for the key type T.
func MakeSet ¶
func MakeSet[T comparable](size ...int) Set[T]
MakeSet returns an empty Set of the given type. Size is optional, and if given will reserve the expected size.
func SetWith ¶
func SetWith[T comparable](elements ...T) Set[T]
SetWith creates a Set[T] with the given elements inserted.