Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commite8beb5604c

README.md

geometry.first

Read the first element of a column back from the device as a Number, for a count the rest of the graph sizes its work by: the total of a prefix sum, or the index a reduction picked. The cook waits for the device to answer.

Inputs

  • value (Column). The column read. Only its first element is answered.

Outputs

  • value (Number). The first element.
local total = g.geometry.first({ value = g.geometry.offsets({ counts = g.math.to_int(g.field.index({ domain = 4 }) * 0 + 3) }).total })