Documentation ¶
Index ¶
- func AddFloat32s(dst, input1, input2 []float32) []float32
- func AddFloat64s(dst, input1, input2 []float64) []float64
- func AddInt16s(dst, input1, input2 []int16) []int16
- func AddInt32s(dst, input1, input2 []int32) []int32
- func AddInt64s(dst, input1, input2 []int64) []int64
- func AddInt8s(dst, input1, input2 []int8) []int8
- func AddUint16s(dst, input1, input2 []uint16) []uint16
- func AddUint32s(dst, input1, input2 []uint32) []uint32
- func AddUint64s(dst, input1, input2 []uint64) []uint64
- func AddUint8s(dst, input1, input2 []uint8) []uint8
- func DivFloat32s(dst, input1, input2 []float32) []float32
- func DivFloat64s(dst, input1, input2 []float64) []float64
- func DivInt16s(dst, input1, input2 []int16) []int16
- func DivInt32s(dst, input1, input2 []int32) []int32
- func DivInt64s(dst, input1, input2 []int64) []int64
- func DivInt8s(dst, input1, input2 []int8) []int8
- func DivUint16s(dst, input1, input2 []uint16) []uint16
- func DivUint32s(dst, input1, input2 []uint32) []uint32
- func DivUint64s(dst, input1, input2 []uint64) []uint64
- func DivUint8s(dst, input1, input2 []uint8) []uint8
- func Max[T Number](input []T) T
- func MaxFloat32s(input []float32) (out float32)
- func MaxFloat64s(input []float64) (out float64)
- func MaxInt16s(input []int16) (out int16)
- func MaxInt32s(input []int32) (out int32)
- func MaxInt64s(input []int64) (out int64)
- func MaxInt8s(input []int8) (out int8)
- func MaxUint16s(input []uint16) (out uint16)
- func MaxUint32s(input []uint32) (out uint32)
- func MaxUint64s(input []uint64) (out uint64)
- func MaxUint8s(input []uint8) (out uint8)
- func Min[T Number](input []T) T
- func MinFloat32s(input []float32) (out float32)
- func MinFloat64s(input []float64) (out float64)
- func MinInt16s(input []int16) (out int16)
- func MinInt32s(input []int32) (out int32)
- func MinInt64s(input []int64) (out int64)
- func MinInt8s(input []int8) (out int8)
- func MinUint16s(input []uint16) (out uint16)
- func MinUint32s(input []uint32) (out uint32)
- func MinUint64s(input []uint64) (out uint64)
- func MinUint8s(input []uint8) (out uint8)
- func MulFloat32s(dst, input1, input2 []float32) []float32
- func MulFloat64s(dst, input1, input2 []float64) []float64
- func MulInt16s(dst, input1, input2 []int16) []int16
- func MulInt32s(dst, input1, input2 []int32) []int32
- func MulInt64s(dst, input1, input2 []int64) []int64
- func MulInt8s(dst, input1, input2 []int8) []int8
- func MulUint16s(dst, input1, input2 []uint16) []uint16
- func MulUint32s(dst, input1, input2 []uint32) []uint32
- func MulUint64s(dst, input1, input2 []uint64) []uint64
- func MulUint8s(dst, input1, input2 []uint8) []uint8
- func SubFloat32s(dst, input1, input2 []float32) []float32
- func SubFloat64s(dst, input1, input2 []float64) []float64
- func SubInt16s(dst, input1, input2 []int16) []int16
- func SubInt32s(dst, input1, input2 []int32) []int32
- func SubInt64s(dst, input1, input2 []int64) []int64
- func SubInt8s(dst, input1, input2 []int8) []int8
- func SubUint16s(dst, input1, input2 []uint16) []uint16
- func SubUint32s(dst, input1, input2 []uint32) []uint32
- func SubUint64s(dst, input1, input2 []uint64) []uint64
- func SubUint8s(dst, input1, input2 []uint8) []uint8
- func Sum[T Number](input []T) T
- func SumFloat32s(input []float32) (out float32)
- func SumFloat64s(input []float64) (out float64)
- func SumInt16s(input []int16) (out int16)
- func SumInt32s(input []int32) (out int32)
- func SumInt64s(input []int64) (out int64)
- func SumInt8s(input []int8) (out int8)
- func SumUint16s(input []uint16) (out uint16)
- func SumUint32s(input []uint32) (out uint32)
- func SumUint64s(input []uint64) (out uint64)
- func SumUint8s(input []uint8) (out uint8)
- type Number
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFloat32s ¶
AddFloat32s adds input1 to input2 and writes back the result into dst slice
func AddFloat64s ¶
AddFloat64s adds input1 to input2 and writes back the result into dst slice
func AddUint16s ¶
AddUint16s adds input1 to input2 and writes back the result into dst slice
func AddUint32s ¶
AddUint32s adds input1 to input2 and writes back the result into dst slice
func AddUint64s ¶
AddUint64s adds input1 to input2 and writes back the result into dst slice
func DivFloat32s ¶
DivFloat32s divides input1 by input2 and writes back the result into dst slice
func DivFloat64s ¶
DivFloat64s divides input1 by input2 and writes back the result into dst slice
func DivUint16s ¶
DivUint16s divides input1 by input2 and writes back the result into dst slice
func DivUint32s ¶
DivUint32s divides input1 by input2 and writes back the result into dst slice
func DivUint64s ¶
DivUint64s divides input1 by input2 and writes back the result into dst slice
func Max ¶ added in v1.1.0
func Max[T Number](input []T) T
Max returns the largest element value in the slice
func MaxFloat32s ¶
MaxFloat32s returns the largest element value in the slice
func MaxFloat64s ¶
MaxFloat64s returns the largest element value in the slice
func MaxUint16s ¶
MaxUint16s returns the largest element value in the slice
func MaxUint32s ¶
MaxUint32s returns the largest element value in the slice
func MaxUint64s ¶
MaxUint64s returns the largest element value in the slice
func Min ¶ added in v1.1.0
func Min[T Number](input []T) T
Min returns the smallest element value in the slice
func MinFloat32s ¶
MinFloat32s returns the smallest element value in the slice
func MinFloat64s ¶
MinFloat64s returns the smallest element value in the slice
func MinUint16s ¶
MinUint16s returns the smallest element value in the slice
func MinUint32s ¶
MinUint32s returns the smallest element value in the slice
func MinUint64s ¶
MinUint64s returns the smallest element value in the slice
func MulFloat32s ¶
MulFloat32s multiplies input1 by input2 and writes back the result into dst slice
func MulFloat64s ¶
MulFloat64s multiplies input1 by input2 and writes back the result into dst slice
func MulUint16s ¶
MulUint16s multiplies input1 by input2 and writes back the result into dst slice
func MulUint32s ¶
MulUint32s multiplies input1 by input2 and writes back the result into dst slice
func MulUint64s ¶
MulUint64s multiplies input1 by input2 and writes back the result into dst slice
func SubFloat32s ¶
SubFloat32s subtracts input2 from input1 and writes back the result into dst slice
func SubFloat64s ¶
SubFloat64s subtracts input2 from input1 and writes back the result into dst slice
func SubUint16s ¶
SubUint16s subtracts input2 from input1 and writes back the result into dst slice
func SubUint32s ¶
SubUint32s subtracts input2 from input1 and writes back the result into dst slice
func SubUint64s ¶
SubUint64s subtracts input2 from input1 and writes back the result into dst slice
func Sum ¶ added in v1.1.0
func Sum[T Number](input []T) T
Sum sums up all of the elements of the slice and returns the value
func SumFloat32s ¶
SumFloat32s sums up all of the elements of the slice and returns the value
func SumFloat64s ¶
SumFloat64s sums up all of the elements of the slice and returns the value
func SumUint16s ¶
SumUint16s sums up all of the elements of the slice and returns the value
func SumUint32s ¶
SumUint32s sums up all of the elements of the slice and returns the value
func SumUint64s ¶
SumUint64s sums up all of the elements of the slice and returns the value