Skip to main content

Module ops

Module ops 

Source
Expand description

Vectorized arithmetic, comparison, logical, range, membership, and matrix multiplication operators. All functions are pure β€” they operate on values without needing interpreter state.

FunctionsΒ§

eval_arith πŸ”’
eval_binary πŸ”’
eval_compare πŸ”’
eval_in_op πŸ”’
eval_logical_vec πŸ”’
eval_matmul πŸ”’
Matrix multiplication using ndarray
eval_range πŸ”’
eval_raw_bitwise πŸ”’
Bitwise &/| for raw vectors β€” returns raw
eval_unary πŸ”’
list_to_character πŸ”’
Coerce a list to a character vector by extracting each element’s string representation. Used for comparison operators on lists (e.g. lapply(x, class) == "NULL").
op_symbol πŸ”’
Map a BinaryOp to its R symbol name for S3 dispatch.
propagate_attrs πŸ”’
Copy attributes (dim, dimnames, names, class) from the longer operand to the arithmetic result. R’s rule: attrs come from the first operand if lengths are equal, otherwise from the longer one.