package tensorboard
Install
Dune Dependency
Authors
Maintainers
Sources
md5=91035b4a9827fdf6e2fb61d0edb1bb2c
sha512=7f09994c0bb844429b795b971ae3bacd927eae4854a4efc36dbf8d6f4ea24e7f05f754f7191747e32b4fef1922589d1db8d2622147a1706efe7e79201329400b
doc/tensorboard.protobuf/Tensorboard_protobuf/Pbrt/Repeated_field/index.html
Module Pbrt.Repeated_field
Source
optimized data structure for fast inserts so that decoding can be efficient
Type can be constructed at no cost from an existing array.
make v
create an initial repeated field container v
is not used but needed to initialize the internal array data structure.
This design flow is intentional to keep optimal performance.
Therefore lengh (make 1)
will return 0
.
of_array_no_copy a
initialized a new repeated field container with a
.
a
is not copied into a
but only referenced so any later modification to any a
element will affected a t
container.
add x c
appends a
to container c
This operation is not constant time since it might trigger an alocation of an array. However it is optimized for the total insert time of element one by one.
fold_left f e0 c
accumulates e0
through each elements
map_to_array f c
map all c
element to an array containing f e_i
element.