manual
libraries
contrib
Structure is walk as a structure whose arrays are all positions: Nx.Ptree.instantiate (module Cosmology.Structure) describes a cosmology of tensors.
Structure
walk
Nx.Ptree.instantiate (module Cosmology.Structure)
type ('a, 'd) t = 'a t
The type for values with parameter 'a and fixed arrays on 'd.
'a
'd
val walk : ('a, 'b, 'd, 'e) Nx.Ptree.Walk.cursor -> ('a, 'd) t -> ('b, 'e) t
walk c x walks every part of x with c and is x rebuilt from what the walks return.
walk c x
x
c