Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Abs ¶
func Abs[T Numeric](a T) T
Abs returns the absolute value of a number of any numeric type.
Parameters:
- a: the value
Returns:
- the absolute value of the number
func DotProduct ¶
DotProduct calculates the dot product of two vectors using NEON or AVX SIMD instructions if supported, otherwise it falls back to the standard implementation.
Parameters:
- left: the first vector
- right: the second vector
- result: pointer to the result
Types ¶
Click to show internal directories.
Click to hide internal directories.