Computation.Symbol

This document is auto-generated for Owl’s APIs. #59 entries have been extracted.

Github: {Signature} {Implementation}

Core functions

val op_to_str : op -> string

TODO

source code

val is_random_variable : op -> bool

TODO

source code

val refnum : 'a Owl_graph.node -> int

TODO

source code

val node_shape : attr Owl_graph.node -> int array

TODO

source code

val node_numel : attr Owl_graph.node -> int

TODO

source code

val is_shape_unknown : attr Owl_graph.node -> bool

TODO

source code

val infer_shape_graph : attr Owl_graph.node array -> unit

TODO

source code

val shape_to_str : int array option array -> string

TODO

source code

val node_to_str : attr Owl_graph.node -> string

TODO

source code

val node_to_arr : t -> arr

TODO

source code

val arr_to_node : arr -> t

TODO

source code

val node_to_elt : t -> elt

TODO

source code

val elt_to_node : elt -> t

TODO

source code

val make_node : ?name:string -> ?value:value array -> ?shape:int array option array -> ?freeze:bool -> ?reuse:bool -> ?state:state -> op -> attr Owl_graph.node

TODO

source code

val make_then_connect : ?shape:int array option array -> op -> attr Owl_graph.node array -> attr Owl_graph.node

TODO

source code

val var_arr : ?shape:int array -> string -> arr

TODO

source code

val var_elt : string -> elt

TODO

source code

val const_arr : string -> A.arr -> arr

TODO

source code

val const_elt : string -> A.elt -> elt

TODO

source code

val new_block_id : unit -> int

new_block_id () returns an unused block id.

source code

val make_empty_block : ?block_id:int -> int -> block

make_empty_block s returns an empty block of memory of size s.

source code

val make_value_block : value -> attr Owl_graph.node -> unit
make_value_block value node creates a block of memory initialised with
value and links the new block to node.

source code

val get_block : attr Owl_graph.node -> block array
get_block node returns the memory block allocated to node.
If no block is allocated, throws an exception.

source code

val add_node_to_block : attr Owl_graph.node -> block -> unit
Link a node to a reusable block and initialises its memory on the memory of
the block.

source code

val get_active_node : block -> (attr Owl_graph.node) option

Return the node that is currently using the memory of the block.

source code

val set_active_node : block -> attr Owl_graph.node -> unit

Update the node that is currently using the block of memory.

source code

val get_block_id : attr Owl_graph.node -> int
get_block_id node returns the id of the block assigned to node. If
node has not been assigned yet, returns -1.

source code

val set_value : attr Owl_graph.node -> value array -> unit

TODO

source code

val get_value : attr Owl_graph.node -> value array

TODO

source code

val set_operator : attr Owl_graph.node -> op -> unit

TODO

source code

val get_operator : attr Owl_graph.node -> op

TODO

source code

val set_reuse : attr Owl_graph.node -> bool -> unit

TODO

source code

val get_reuse : attr Owl_graph.node -> bool

TODO

source code

val is_shared : attr Owl_graph.node -> bool

TODO

source code

val get_shared_nodes : attr Owl_graph.node -> (attr Owl_graph.node) array
get_shared_nodes node returns the nodes sharing the same block of memory
as node.

source code

val is_var : attr Owl_graph.node -> bool

TODO

source code

val is_const : attr Owl_graph.node -> bool

TODO

source code

val is_node_arr : attr Owl_graph.node -> bool

TODO

source code

val is_node_elt : attr Owl_graph.node -> bool

TODO

source code

val is_assigned : attr Owl_graph.node -> bool
is_assigned node checks if a block of memory has been assigned to
node.

source code

val check_assigned : attr Owl_graph.node -> unit
check_assigned node throws an exception if node has not been
assigned to a block.

source code

val is_valid : attr Owl_graph.node -> bool

TODO

source code

val validate : attr Owl_graph.node -> unit

TODO

source code

val invalidate : attr Owl_graph.node -> unit

TODO

source code

val invalidate_graph : attr Owl_graph.node -> unit

TODO

source code

val is_freeze : attr Owl_graph.node -> bool

TODO

source code

val freeze : attr Owl_graph.node -> unit

TODO

val freeze_descendants : attr Owl_graph.node array -> unit

TODO

source code

val freeze_ancestors : attr Owl_graph.node array -> unit

TODO

source code

val pack_arr : A.arr -> arr

TODO

source code

val unpack_arr : arr -> A.arr

TODO

source code

val pack_elt : A.elt -> elt

TODO

source code

val unpack_elt : elt -> A.elt

TODO

source code

val unsafe_assign_arr : arr -> A.arr -> unit

TODO

source code

val assign_arr : arr -> A.arr -> unit

TODO

source code

val assign_elt : elt -> A.elt -> unit

TODO

source code

val float_to_elt : float -> elt

TODO

source code

val elt_to_float : elt -> float

TODO

source code