Versions in this module Expand all Collapse all v0 v0.2.5 Jul 3, 2021 v0.2.4 Feb 2, 2021 v0.2.3 Dec 29, 2020 Changes in this version + type PartitionFunc func(r plan.Interval, k int) []plan.Interval type Strategy + const MultiStar type Vector + func (b *Vector) AsF64() []float64 + type Workspace struct + Name string + OP OP + RecvBuf *Vector + SendBuf *Vector + func (w Workspace) Forward() + func (w Workspace) IsEmpty() bool + func (w Workspace) IsInplace() bool + func (w Workspace) Split(p PartitionFunc, k int) []Workspace v0.2.2 Mar 30, 2020 Changes in this version + const DefaultStrategy + func StrategyNames() []string + func Transform(y, x *Vector, op OP) + func Transform2(z, x, y *Vector, op OP) + type DataType C.KungFu_Datatype + const F16 + const F32 + const F64 + const I16 + const I32 + const I64 + const I8 + const U16 + const U32 + const U64 + const U8 + func (t DataType) Size() int + func (t DataType) String() string + type OP C.KungFu_Op + const MAX + const MIN + const PROD + const SUM + type Strategy C.KungFu_Strategy + const Auto + const BinaryTree + const BinaryTreeStar + const Clique + const MultiBinaryTreeStar + const Ring + const Star + const Tree + func ParseStrategy(s string) (*Strategy, error) + func (s *Strategy) Set(val string) error + func (s Strategy) String() string + type Vector struct + Count int + Data []byte + Type DataType + func NewVector(count int, dtype DataType) *Vector + func (b *Vector) AsF32() []float32 + func (b *Vector) AsI32() []int32 + func (b *Vector) AsI64() []int64 + func (b *Vector) AsI8() []int8 + func (b *Vector) CopyFrom(c *Vector) + func (b *Vector) Slice(begin, end int) *Vector