Skip to content

2022.4.2

Choose a tag to compare

@eriknw eriknw released this 27 Apr 00:22
· 211 commits to main since this release
820f796
  • Improvements to operators and user-defined functions (UDFs):
    • Allow Python functions to be passed as BinaryOp or UnaryOp, which will be automatically jitted
    • Add register_new and register_anonymous functions to e.g. gb.binary and gb.semiring namespaces
    • Add binary.binom to compute binomial coefficients exactly
  • Improvements to dtypes and user-defined types (UDTs):
    • Auto-register UDTs, which means non-builtin NumPy dtypes may be passed as the dtype
    • Improved default names of UDTs
    • Improved dtype inference for first, second, and pair binary operators
      • For example, first uses the dtype of the first argument, and pair defaults to INT64
  • Add .reposition(...) to Matrix and Value objects, which "shift" or reposition elements
  • Broadcasting Vector to Matrix (such as plus(A & v)) has better repr and is more efficient with masks
  • Add sort=True keyword to .to_vector(...) method on vectors and matrices
  • Deprecate mask.mask and rename to mask.parent
  • Added git pre-commit hooks to make it easier for contributors