Module binary_numeric

Module binary_numeric 

Source
Expand description

§Binary Numeric Conformance Tests

This module provides conformance testing for binary numeric operations on Vortex arrays. It ensures that all numeric array encodings produce identical results when performing arithmetic operations (add, subtract, multiply, divide).

§Test Strategy

For each array encoding, we test:

  1. All binary numeric operators against a constant scalar value
  2. Both left-hand and right-hand side operations (e.g., array + 1 and 1 + array)
  3. That results match the canonical primitive array implementation

§Supported Operations

  • Addition (+)
  • Subtraction (-)
  • Reverse Subtraction (scalar - array)
  • Multiplication (*)
  • Division (/)
  • Reverse Division (scalar / array)

Functions§

test_binary_numeric_array
Entry point for binary numeric conformance testing for any array type.