S.Arrayval create :
?sep:[< `Dot | `Slash Slash ] ->
?dimension_names:string option list ->
?attributes:Yojson.Safe.t ->
codecs:Codecs.codec list ->
shape:int list ->
chunks:int list ->
'a Ndarray.dtype ->
'a ->
Node.Array.t ->
t ->
unit iocreate ~sep ~dimension_names ~attributes ~codecs ~shape ~chunks kind fill node t creates an array node in store t where:
sep is used in the array's chunk key encoding.dimension_names and user attributes attributes are included in it's metadata document.codecs.shape and chunk shape chunks.kind and fill value fv.val metadata : t -> Node.Array.t -> Metadata.Array.t iometadata node t returns the metadata of array node node.
val delete : t -> Node.Array.t -> unit iodelete t n erases array node n from store t. If node n is not a member of store t then this is a no-op.
val exists : t -> Node.Array.t -> bool ioexists t n returns true if array node n is a member of store t and false otherwise.
val write :
t ->
Node.Array.t ->
Ndarray.Indexing.index list ->
'a Ndarray.t ->
unit iowrite t n s x writes n-dimensional array x to the slice s of array node n in store t.
val read :
t ->
Node.Array.t ->
Ndarray.Indexing.index list ->
'a Ndarray.dtype ->
'a Ndarray.t ioread t n s k reads an n-dimensional array of size determined by slice s from array node n.
val reshape : t -> Node.Array.t -> int list -> unit ioreshape t n shape resizes array node n of store t into new size shape. Note that when the resizing involves shrinking an array along any dimensions, any old unreachable chunks that fall outside of the array's new shape are deleted from the store.
val rename : t -> Node.Array.t -> string -> unit iorename t n name changes the name of array node n in store t to name.