package utils
import "github.com/apache/arrow/go/v15/internal/utils"
Index ¶
- Variables
- func GetMinMaxInt16(v []int16) (min, max int16)
- func GetMinMaxInt32(v []int32) (min, max int32)
- func GetMinMaxInt64(v []int64) (min, max int64)
- func GetMinMaxInt8(v []int8) (min, max int8)
- func GetMinMaxUint16(v []uint16) (min, max uint16)
- func GetMinMaxUint32(v []uint32) (min, max uint32)
- func GetMinMaxUint64(v []uint64) (min, max uint64)
- func GetMinMaxUint8(v []uint8) (min, max uint8)
- func Max[T constraints.Ordered](a, b T) T
- func Min[T constraints.Ordered](a, b T) T
- func NewBufferedReader(rd io.Reader, sz int) *bufferedReader
- func TransposeInts(src, dest interface{}, mapping []int32) error
- func TransposeIntsBuffers(inType, outType arrow.DataType, indata, outdata []byte, inOffset, outOffset int, length int, transposeMap []int32) error
Variables ¶
var ( ToLEInt16 = func(x int16) int16 { return x } ToLEUint16 = func(x uint16) uint16 { return x } ToLEUint32 = func(x uint32) uint32 { return x } ToLEUint64 = func(x uint64) uint64 { return x } ToLEInt32 = func(x int32) int32 { return x } ToLEInt64 = func(x int64) int64 { return x } ToLEFloat32 = func(x float32) float32 { return x } ToLEFloat64 = func(x float64) float64 { return x } )
var ( TransposeInt8Int8 = transposeInt8Int8 TransposeInt8Uint8 = transposeInt8Uint8 TransposeInt8Int16 = transposeInt8Int16 TransposeInt8Uint16 = transposeInt8Uint16 TransposeInt8Int32 = transposeInt8Int32 TransposeInt8Uint32 = transposeInt8Uint32 TransposeInt8Int64 = transposeInt8Int64 TransposeInt8Uint64 = transposeInt8Uint64 TransposeUint8Int8 = transposeUint8Int8 TransposeUint8Uint8 = transposeUint8Uint8 TransposeUint8Int16 = transposeUint8Int16 TransposeUint8Uint16 = transposeUint8Uint16 TransposeUint8Int32 = transposeUint8Int32 TransposeUint8Uint32 = transposeUint8Uint32 TransposeUint8Int64 = transposeUint8Int64 TransposeUint8Uint64 = transposeUint8Uint64 TransposeInt16Int8 = transposeInt16Int8 TransposeInt16Uint8 = transposeInt16Uint8 TransposeInt16Int16 = transposeInt16Int16 TransposeInt16Uint16 = transposeInt16Uint16 TransposeInt16Int32 = transposeInt16Int32 TransposeInt16Uint32 = transposeInt16Uint32 TransposeInt16Int64 = transposeInt16Int64 TransposeInt16Uint64 = transposeInt16Uint64 TransposeUint16Int8 = transposeUint16Int8 TransposeUint16Uint8 = transposeUint16Uint8 TransposeUint16Int16 = transposeUint16Int16 TransposeUint16Uint16 = transposeUint16Uint16 TransposeUint16Int32 = transposeUint16Int32 TransposeUint16Uint32 = transposeUint16Uint32 TransposeUint16Int64 = transposeUint16Int64 TransposeUint16Uint64 = transposeUint16Uint64 TransposeInt32Int8 = transposeInt32Int8 TransposeInt32Uint8 = transposeInt32Uint8 TransposeInt32Int16 = transposeInt32Int16 TransposeInt32Uint16 = transposeInt32Uint16 TransposeInt32Int32 = transposeInt32Int32 TransposeInt32Uint32 = transposeInt32Uint32 TransposeInt32Int64 = transposeInt32Int64 TransposeInt32Uint64 = transposeInt32Uint64 TransposeUint32Int8 = transposeUint32Int8 TransposeUint32Uint8 = transposeUint32Uint8 TransposeUint32Int16 = transposeUint32Int16 TransposeUint32Uint16 = transposeUint32Uint16 TransposeUint32Int32 = transposeUint32Int32 TransposeUint32Uint32 = transposeUint32Uint32 TransposeUint32Int64 = transposeUint32Int64 TransposeUint32Uint64 = transposeUint32Uint64 TransposeInt64Int8 = transposeInt64Int8 TransposeInt64Uint8 = transposeInt64Uint8 TransposeInt64Int16 = transposeInt64Int16 TransposeInt64Uint16 = transposeInt64Uint16 TransposeInt64Int32 = transposeInt64Int32 TransposeInt64Uint32 = transposeInt64Uint32 TransposeInt64Int64 = transposeInt64Int64 TransposeInt64Uint64 = transposeInt64Uint64 TransposeUint64Int8 = transposeUint64Int8 TransposeUint64Uint8 = transposeUint64Uint8 TransposeUint64Int16 = transposeUint64Int16 TransposeUint64Uint16 = transposeUint64Uint16 TransposeUint64Int32 = transposeUint64Int32 TransposeUint64Uint32 = transposeUint64Uint32 TransposeUint64Int64 = transposeUint64Int64 TransposeUint64Uint64 = transposeUint64Uint64 )
if building with the 'noasm' tag, then point to the pure go implementations
Functions ¶
func GetMinMaxInt16 ¶
GetMinMaxInt16 returns the min and max for a int16 slice, using AVX2 or SSE4 cpu extensions if available, falling back to a pure go implementation if they are unavailable or built with the noasm tag.
func GetMinMaxInt32 ¶
GetMinMaxInt32 returns the min and max for a int32 slice, using AVX2 or SSE4 cpu extensions if available, falling back to a pure go implementation if they are unavailable or built with the noasm tag.
func GetMinMaxInt64 ¶
GetMinMaxInt64 returns the min and max for a int64 slice, using AVX2 or SSE4 cpu extensions if available, falling back to a pure go implementation if they are unavailable or built with the noasm tag.
func GetMinMaxInt8 ¶
GetMinMaxInt8 returns the min and max for a int8 slice, using AVX2 or SSE4 cpu extensions if available, falling back to a pure go implementation if they are unavailable or built with the noasm tag.
func GetMinMaxUint16 ¶
GetMinMaxUint16 returns the min and max for a uint16 slice, using AVX2 or SSE4 cpu extensions if available, falling back to a pure go implementation if they are unavailable or built with the noasm tag.
func GetMinMaxUint32 ¶
GetMinMaxUint32 returns the min and max for a uint32 slice, using AVX2 or SSE4 cpu extensions if available, falling back to a pure go implementation if they are unavailable or built with the noasm tag.
func GetMinMaxUint64 ¶
GetMinMaxUint64 returns the min and max for a uint64 slice, using AVX2 or SSE4 cpu extensions if available, falling back to a pure go implementation if they are unavailable or built with the noasm tag.
func GetMinMaxUint8 ¶
GetMinMaxUint8 returns the min and max for a uint8 slice, using AVX2 or SSE4 cpu extensions if available, falling back to a pure go implementation if they are unavailable or built with the noasm tag.
func Max ¶
func Max[T constraints.Ordered](a, b T) T
func Min ¶
func Min[T constraints.Ordered](a, b T) T
func NewBufferedReader ¶
NewBufferedReader returns a buffered reader with similar semantics to bufio.Reader except Peek will expand the internal buffer if needed rather than return an error.
func TransposeInts ¶
TransposeInts expects two integral slices and the values they map to. Returning an error if either src or dest are not an integral type.
func TransposeIntsBuffers ¶
func TransposeIntsBuffers(inType, outType arrow.DataType, indata, outdata []byte, inOffset, outOffset int, length int, transposeMap []int32) error
TransposeIntsBuffers takes the data-types, byte buffers, and offsets of a source and destination buffer to perform TransposeInts on with the provided mapping data.
Source Files ¶
buf_reader.go endians_default.go math.go min_max.go transpose_ints.go transpose_ints_def.go transpose_ints_noasm.go
- Version
- v15.0.2 (latest)
- Published
- Mar 13, 2024
- Platform
- js/wasm
- Imports
- 7 packages
- Last checked
- 4 hours ago –
Tools for package owners.