Plasma GitLab Archive
Projects Blog Knowledge

Module Netaux.ArrayAux


module ArrayAux: sig .. end

val int_blit : int array -> int -> int array -> int -> int -> unit
A specialisation of Array.blit for int arrays. (Performance reasons.)
val int_series : int array -> int -> int array -> int -> int -> int -> unit
int_series src srcpos dst dstpos len n: Computes for every i, 0 <= i < len: dst.(dstpos+i) = n + SUM(j=0..(i-1): src.(srcpos+j))

It is expected that src == dst implies srcpos >= dstpos.

This web site is published by Informatikbüro Gerd Stolpmann
Powered by Caml