Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 704 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 704 Bytes

Segmented Operations in Futhark CI Documentation

A library for perfoming irregular segmented operations in Futhark. For regular segments, just use map.

Installation

$ futhark pkg add github.com/diku-dk/segmented
$ futhark pkg sync

Usage

> import "lib/github.com/diku-dk/segmented/segmented"
> segmented_reduce (+) 0 [true,false,false,true,false] (iota 5)
[3i32, 7i32]

See also