Make.Core
module A : Owl_types_ndarray_algodiff.Sig
iteratively get primal component of DF or DR type until the component itself is not DF/DR
val shape : t -> int array
get the shape of primal' value of input
val is_float : t -> bool
check if input is of float value; if input is of type DF/DR, check its primal' value
val is_arr : t -> bool
check if input is of ndarray value; if input is of type DF/DR, check its primal' value
val row_num : t -> int
get the shape of primal' value of input; and then get the first dimension
val col_num : t -> int
get the shape of primal' value of input; and then get the second dimension
val numel : t -> int
for ndarray type input, return its total number of elements.
if primal' value of input is ndarray, copy its value in a new AD type ndarray
val pack_flt : float -> t
convert from float
type to t
type.
val _f : float -> t
A shortcut function for F A.(float_to_elt x)
.
val unpack_flt : t -> float
convert from t
type to float
type.
val deep_info : t -> string
val type_info : t -> string
val error_uniop : string -> t -> 'a