Discover Packages
github.com/duncanpierce/vector
scalable
package
Version:
v0.0.0-...-e16fa26
Opens a new window with list of versions in this module.
Published: Sep 7, 2022
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
func Extract[Element any ](b Bunch [Element]) (result []Element)
type Bunch[Element any ] interface {
Load(source Reader [Element])
Store(dest Writer[Element])
Active() Predicate
Mul(x, y Bunch [Element]) Bunch [Element]
}
type Predicate struct {
}
Predicate records which elements of a vector are active and hold usable values.
To support Arm SVE, this requires re-striding when changing vector element widths. See README-DESIGN.md.
type Reader[Element any ] interface {
Read() (value Element, ok bool )
}
func FromChan[Element any ](c <-chan Element) Reader [Element]
func FromSlice[Element any ](s *[]Element) Reader [Element]
type Writer[Element any ] interface {
Write(value Element)
}
func ToChan[Element any ](c chan<- Element) Writer[Element]
func ToSlice[Element any ](s *[]Element) Writer[Element]
Source Files
¶
Click to show internal directories.
Click to hide internal directories.