Fpga, Accelerated Computing, High Level Synthesis, Hpc.
float; z: float } Next we define functions to work on the state. Functions in Dahlia are inlined at their application. def st_scale(h: float, s: state): state = { let ns: state = { x=h*s.x; y=h*s.y; z=h*s.z }; return ns; } def st_add(a: state, b: state): state = { let c: state = { x=a.x+b.x;