minimum_bool

Function minimum_bool 

Source
#[unsafe(no_mangle)]
pub unsafe fn minimum_bool(
    num_els: usize,
    num_dims: usize,
    metadata: *const usize,
    lhs: *const bool,
    rhs: *const bool,
    out: *mut bool,
)
Expand description

ยงSafety

Caller must guarantee that:

  • metadata must be either:
    • null (indicating contiguous arrays) or
    • a valid pointer to an array of 3 * num_dims elements containing:
      • dims[num_dims]: array dimensions
      • lhs_strides[num_dims]: strides for left-hand side array
      • rhs_strides[num_dims]: strides for right-hand side array
  • lhs must be a valid pointer to an array of at least num_els elements
  • rhs must be a valid pointer to an array of at least num_els elements
  • out must be a valid pointer to an array of at least num_els elements
  • The memory regions of lhs, rhs, and out must not overlap
  • The alignment requirements of the data type must be respected for all arrays
  • All array indices calculated from dims and strides must be in bounds